Hello Magento!

In previous chapters, we learned about the Magento code pools (core, community, and local). As we don't intend to distribute our module on Magento Connect, we will create it under the local directory.

All Magento modules are kept inside packages or namespaces. For example, all the core Magento modules are kept under the Mage namespace. For the purpose of this book, we will use Magento Developer's Guide (Mdg).

The Magento naming convention for modules is Namespace_Modulename

Our next step is to create the module structure and configuration files. We need to create a "namespace" directory under app/code/local/.

The namespace can be anything you like. The accepted convention is to use the company name or the author name as the namespace. ...

Get Magento PHP Developer's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.