Create your first “Hello World” magento module with the following steps.
- Create a folder structure for your module:
- app/code/local/{ModuleNamespace},
- app/code/local/{ModuleNamespace}/{ModuleName}
- app/code/local/{ModuleNamespace}/{ModuleName}/etc
- app/code/local/{ModuleNamespace}/{ModuleName}/controllers
- Configure your module: create a config.xml file in app/code/local/{ModuleNamespace}/{ModuleName}/etc/ directory
- Create a controller file IndexController.php in your controllers directory
- Activate your module: create a {ModuleNamespace}_{ModuleName}.xml file in app/etc/modules/
- Clear the Magento cache
- Visit http://domain.com/yourUrl
Right now, we will explore these steps in details: