Creating the theme options module
As we said in the previous chapter, to start a new Magento module, you have to create a module code folder under an appropriate code pool. We are going to use the local code pool for our module here.
We can use the same namespace used for the Widget
module, BookStore
, and create the module inside that folder. We are going to name it ThemeOptions
.
Let's start creating the basic module. The following is the folder structure:
app - code - local - BookStore - ThemeOptions - etc - Helper - Model - etc
Activating the module
To activate the module, we need to do the following three simple operations:
Create the
BookStore_ThemeOptions.xml
file inapp/etc/modules/
with the following code to activate the module:<?xml version="1.0"?> <config> <modules> <BookStore_ThemeOptions> <active>true</active> <codePool>local</codePool> <depends> <Mage_Cms/>...