When you want to create a module, the first step is to create the files and folders to register the module. At the end of this recipe, we will have a module that is registered but does not have functionality.
Open your IDE and navigate to the app/code/local
folder. If the local folder is not there, create the app/code/local
folder.
In the following steps, we will create the files required to register a Magento module.
Create the module in
app/code/local
by creating the following folders:app/code/local/Packt
app/code/local/Packt/Helloworld
app/code/local/Packt/Helloworld/etc
Packt
is the namespace of the module andHelloworld
is the name of the module.Register the module by creating the
Packt_Helloworld.xml
file in theapp/etc/modules
folder. Add the following content in this file:<?xml version="1.0"?> <config> <modules> <Packt_Helloworld> <active>true</active> <codePool>local</codePool...