July 2015
Beginner to intermediate
260 pages
5h
English
The following example will give us a quick and easy introduction to the world of creating Magento extensions. We will create a simple "Hello World" module that will allow us to display a "Hello World!" message when we visit a specific URL in our store.
Creating a barebones extension in Magento requires at least two files: config.xml and the module declaration file. Let's go ahead and create each of our files.
The first file is used to declare the module to Magento. Without this file, Magento would not be aware of any extension files.
The file location is app/etc/modules/Mdg_Hello.xml.
<?xml version="1.0"?> <config> <modules> <Mdg_Hello> <active>true</active> <codePool>local</codePool> </Mdg_Hello> </modules> ...
Read now
Unlock full access