Mage_Adminhtml
is a single module that provides all the backend functionalities for Magento through the usage of configuration. As we learned before, Magento uses scopes for defining the configuration. In the previous chapter, we used the frontend scope to set up the configuration for our custom module.
To modify the backend, we need to create a new scope in our configuration file called admin
. Perform the following steps to do so:
Open the
config.xml
file, which can be found at the locationapp/code/loca/Mdg/Giftregistry/etc/
.Add the following code to it:
<admin> <routers> <giftregistry> <use>admin</use> <args> <module>Mdg_Giftregistry_Adminhmtl</module> <frontName>giftregistry</frontName> </args> </giftregistry> </routers> </admin>
This code is very similar to the one we used before to specify our frontend route; however, by declaring...