Config Block Definition
Updated . Posted . Visible to the public.
<config>
<global>
<blocks>
<namespace_module>
<class>Namespace_Module_Block</class>
</namespace_module>
</blocks>
</global>
</config>
Related cards:
Config Block rewrite Definition
<config>
<global>
<blocks>
<catalog>
<rewrite>
<product>Namespace_Module_Block_Catalog_Product</product>
</rewrite>
</catalog>
...
Config FPC Placeholder Definition
This should go in cache.xml
. See Boilerplate FPC No-Cache Container for a boilerplate container.
<config>
<placeholders>
<namespace_module>
...
Helper Block Definition
<config>
<global>
<helpers>
<namespace_module>
<class>Namespace_Module_Helper</class>
</namespace_module>
</helpers>
</global>
</config>
![](http:...
Config Model & Resource Model Definition
<config>
<global>
<models>
<namespace_module>
<class>Namespace_Module_Model</class>
<resourceModel>namespace_module_resource</resourceModel>
</namespac...
Config Cronjob Definition
<config>
<crontab>
<jobs>
<cron_job_name>
<schedule>
<cron_expr>* * * * *</cron_expr>
</schedule>
<run>
...
Config Setup Definition (EAV & Flat)
EAV:
<config>
<global>
<resources>
<namespace_module_setup>
<setup>
<module>Namespace_Module</module>
<class>Mage_Eav_Model_Entity_Setup</...
Config Event Observer Definition (Frontend, Admin & Global)
Frontend:
<config>
<frontend>
<events>
<the_name_of_the_event_to_observe>
<observers>
<namespace_module>
<class>namespace_module/obser...
Config Layout Definition (Frontend & Admin)
Frontend:
<config>
<frontend>
<layout>
<updates>
<namespace_module>
<file>namespace-module.xml</file>
</namespace_module>
</up...
Config Menu Definition
This should go in adminhtml.xml. Also see Config ACL Definition (note that the XML path of the ACL entry needs to match up with the XML path of the menu entry).
To place an entry und...
Config Controller Definition (Frontend & Admin)
Frontend With Route:
<config>
<frontend>
<routers>
<namespace_module>
<use>standard</use>
<args>
<module>Namespace_Module</module>
...
Posted by Mike Whitby to Magento (2012-02-15 15:35)