The XML module configuration
There are two main files involved in a module configuration, config.xml
and system.xml
. In addition to these, module configuration is also stored in the following files:
api.xml
adminhtml.xml
cache.xml
widget.xml
wsdl.xml
wsi.xml
convert.xml
In this chapter, we will only focus on config.xml
. Let's create our base file and break down each of the nodes:
- Start by creating the
config.xml
file under our moduleetc/
directory. - Copy the given code to
config.xml
, located atapp/code/local/Mdg/Giftregistry/etc/config.xml
:<?xml version="1.0"> <config> <modules> <Mdg_Giftregistry> <version>0.2.0</version> </Mdg_Giftregistry> </modules> <global> <models> <mdg_giftregistry> <class>Mdg_Giftregistry_Model</class> </mdg_giftregistry> </models> ...
Get Magento PHP Developer's Guide - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.