Book Image

Magento 1.4 Development Cookbook

By : Nurul Ferdous
Book Image

Magento 1.4 Development Cookbook

By: Nurul Ferdous

Overview of this book

<p>Magento is the fastest growing PHP-based e-commerce solution based on the Zend Framework. It is a robust CMS that provides developers the ability to enrich their store with extra functionalities using custom modules. Developing a Magento store to get the desired look and feel is not as easy as you might believe and may take hours due to the wealth of features available for you to use.<br /><br />Magento 1.4 Development Cookbook provides unparalleled guidelines to develop a much faster and more captivating Magento store by writing powerful custom modules. The book covers everything from common development tasks to integrating social networking plugins into Magento.<br /><br />If you choose to work through all the recipes from the beginning, you will have a development platform ready to work with Magento. You will also explore different ways to customize the look and feel of a Magento store to offer your customers a better user experience. Integration of Magento with WordPress to add striking functionality to your store will be accomplished in just a few steps. Some cool recipes take care of the Magento security measures by editing the parameters in the admin panel. Setting up a master-slave setup for Magento database is discussed along with other database optimizations in the database chapter. Developing new modules and widgets for Magento is thoroughly described. Optimizing Magento's performance is the most important part of this book, which is armed with some easy and incredible recipes dealing with YSlow, Page Speed, Siege, Apache bench, Apache configuration, php.ini optimization, and caching with APC or Memcached. The work procedure behind the wall is explained in an easy manner so that both novice and experienced developers can benefit from it. This book also has some recipes that are not only useful for Magento but also for any other LAMP-based project.</p>
Table of Contents (19 chapters)
Magento 1.4 Development Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Setting up a Magento project with NetBeans


NetBeans is a powerful free and Open Source IDE, which you can use for almost any language. We will use this IDE throughout this book. You can have a look why should we use it at http://netbeans.org/switch/why.html.

Getting ready

Get your copy of NetBeans from http://netbeans.org/downloads/index.html and install it. Make sure that you have installed the right download bundle, which is either PHP or All.

How to do it...

Now you should have everything ready and set up to create a Magento project in NetBeans.

  1. Start NetBeans. When the IDE comes up, create a new PHP project (File | New Project | PHP | PHP Application with Existing Sources; PHP Application from Remote Server). Note that we chose the second one, that is, PHP Application with Existing Sources, as we have the Magento source code already at hand.

  2. Then click Next.

  3. In the Sources Folder field, enter or select the directory where you previously exported the Magento sources (/var/www/magento.local.com).

  4. Next, choose the Project Name (magento).

  5. Then click Next. The Run Configuration dialog will appear.

  6. In the Run Configuration step, select Local Web Site(running on local web server) in the Run As field.

  7. Enter the URL to open the main Magento page in the browser (http://magento.local.com/).

  8. Click the Finish button now to complete the project setup. Now you should have got something like this:

How it works...

With the NetBeans IDE for PHP, you get the best of both worlds: the productivity of an IDE (code completion, real-time error checking, debugging, and more) with the speed and simplicity of your favorite text editor in a less than 30 MB download.

Upon completion of project setup, NetBeans will open Magento project files and scan the files for debugging information and Subversion history. This could take some time.