Modules must conform to Magento conventions regarding code location and file names. Keep these conventions in mind when working with or developing modules.
Be sure to research additional Magento conventions, beyond those applicable to modules. For more information, see Coding Standards.
Module location conventions
The following table shows the recommended location within the Magento file system for specific components.
must include a
registration.php file in its root folder.)
We refer to a component’s root directory as the top-level directory in which you develop component code. Typically, this directory is located in one of the following directories relative to the Magento root directory:
|Code base of your custom module||
|Custom theme files (storefront)||
|Custom theme files (modules)||
|If you want to use a library||