Config Model Rewrite Definition
Posted About 12 years ago. Visible to the public.
<config>
<global>
<models>
<catalog>
<rewrite>
<product>Namespace_Module_Model_Catalog_Product</product>
</rewrite>
</catalog>
</models>
</global>
</config>
Last edit
Over 10 years ago
Related cards:
Config Model & Resource Model Definition
<config>
<global>
<models>
<namespace_module>
<class>Namespace_Module_Model</class>
<resourceModel>namespace_module_resource</resourceModel>
</namespac...
Config URL Rewrite Definition
<config>
<global>
<rewrite>
<namespace_module>
<from><![CDATA[#^/some/regex/([a-z]*/?$#]]></from>
<to><![CDATA[/frontname/whatever/whatever/blah/$1]]></to>
...
Config Block rewrite Definition
<config>
<global>
<blocks>
<catalog>
<rewrite>
<product>Namespace_Module_Block_Catalog_Product</product>
</rewrite>
</catalog>
...
Config Helper Rewrite Definition
<config>
<global>
<helpers>
<catalog>
<rewrite>
<data>Namespace_Module_Helper_Catalog_Data</data>
</rewrite>
</catalog>
...
Config Cronjob Definition
<config>
<crontab>
<jobs>
<cron_job_name>
<schedule>
<cron_expr>* * * * *</cron_expr>
</schedule>
<run>
...
Config Block Definition
<config>
<global>
<blocks>
<namespace_module>
<class>Namespace_Module_Block</class>
</namespace_module>
</blocks>
</global>
</config>
![](http://m...
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...
Posted by Mike Whitby to Magento (2012-04-30 12:28)