Book Image

Magento PHP Developer's Guide

By : Allan MacGregor
Book Image

Magento PHP Developer's Guide

By: Allan MacGregor

Overview of this book

<p>Magento has completely reshaped the face of e-commerce since its launch in 2008. Its revolutionary focus on object oriented and EAV design patterns has allowed it to become the preferred tool for developers and retailers alike.</p> <p>"Magento PHP Developer’s Guide" is a complete reference to Magento, allowing developers to understand its fundamental concepts, and get them developing and testing Magento code.</p> <p>The book starts by building the reader’s knowledge of Magento, providing them with the information, techniques, and tools that they require to start their first Magento development.</p> <p>After building this knowledge, the book will then look at more advanced topics: how to test your code, how to extend the frontend and backend, and deploying and distributing custom modules.</p> <p>"Magento PHP Developer’s Guide" will help you navigate your way around your first Magento developments, helping you to avoid all of the most common headaches new developers face when first getting started.</p>
Table of Contents (16 chapters)
Magento PHP Developer's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Magento folder structure


Magento folder structure is slightly different from other MVC applications; let's take a look at the directory tree, and each directory and its functions:

  • app: This folder is the core of Magento and is subdivided into three importing directories:

    • code: This contains all our application code divided into three code pools such as core, community, and local

    • design: This contains all the templates and layouts for our application

    • locale: This contains all the translation and e-mail template files used for the store

  • js: This contains all the JavaScript libraries that are used in Magento

  • media: This contains all the images and media files for our products and CMS pages as well as the product image cache

  • lib: This contains all the third-party libraries used in Magento such as Zend and PEAR, as well as the custom libraries developed by Magento, which reside under the Varien and Mage directories

  • skin: This contains all CSS code, images, and JavaScript files used by the corresponding...