Skip to content

Instantly share code, notes, and snippets.

@jahvi
Created November 1, 2015 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jahvi/3485e3e68a0c6bd7254b to your computer and use it in GitHub Desktop.
Save jahvi/3485e3e68a0c6bd7254b to your computer and use it in GitHub Desktop.
Register Magento resource
<global>
<models>
<custom_module>
<class>Custom_Module_Model</class>
<resourceModel>module_resource</resourceModel>
</custom_module>
<module_resource>
<class>Custom_Module_Model_Resource</class>
<entities>
<custom_module>
<table>custom_table</table>
</custom_module>
</entities>
</module_resource>
</models>
<resources>
<custommodule_setup>
<setup>
<module>Custom_Module</module>
</setup>
</custommodule_setup>
</resources>
</global>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment