Book Image

Magento 1.8 Development Cookbook

By : Bart Delvaux, Nurul Ferdous
Book Image

Magento 1.8 Development Cookbook

By: Bart Delvaux, Nurul Ferdous

Overview of this book

<p>Magento is an open source e-commerce platform which has all the functionality to function from small to large online stores. Its architecture makes it possible to extend the functionalities with plugins where a lot of them are shared by the community. This is the reason why the platform is liked by developers and retailers.</p> <p>A practical developer guide packed with recipes that cover all the parts of Magento development. The recipes will start with the simple development exercises and get the more advanced as the book progresses. A good reference for every Magento developer!</p> <p>This book starts with the basics. The first thing is to create a test environment. Next, the architecture, tools, files and other basics are described to make you ready for the real work.</p> <p>The real work starts with the simple things like theming and catalog configuration. When you are familiar with this, we will move on to more complex features such as module and database development. When you have survived this, we will move on to the last part of making a shop ready for launch: performance optimization and testing. This book will guide you through all the development phases of Magento, covering the most common pitfalls through its recipes.</p>
Table of Contents (19 chapters)
Magento 1.8 Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Debugging with FirePHP


FirePHP is a plugin that you can install in Firefox. It is integrated in the Firebug console that makes it easy to use as a debugging tool. On the server, FirePHP also needs to be installed. We can do that easily with the PEAR repository, like we did with Xdebug in the previous recipe.

To debug with FirePHP, we need another PHP library. This is the Zend Wildfire plugin in the Zend Framework. Magento is built on the Zend Framework, so the Wildfire plugin is standard installed.

Getting ready

FirePHP is a plugin that runs in Firebug. To make them work, we need to install Firebug and FirePHP as Firefox add-ons using the following links:

https://addons.mozilla.org/us/firefox/addon/firebug/

https://addons.mozilla.org/us/firefox/addon/firephp/

How to do it...

The following steps describe how we can use FirePHP in a Magento project:

  1. Make sure all the Firefox plugins are installed.

  2. Open your Magento project in your IDE such as NetBeans.

  3. Open the index.php file and add the following...