Last active
January 3, 2016 22:49
-
-
Save xcommerce-gists/8531091 to your computer and use it in GitHub Desktop.
Sample Magento config.xml showing how models are defined
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<config> | |
<modules> | |
<!-- omitted for brevity --> | |
</modules> | |
<global> | |
<models> | |
<magentostudy_news> | |
<class>Magentostudy_News_Model</class> | |
<resourceModel>news_resource</resourceModel> <!-- Resource model name --> | |
</magentostudy_news> | |
<news_resource> | |
<class>Magentostudy_News_Model_Resource</class> <!-- Class name specifies the model prefix --> | |
<entities> | |
<news> | |
<table>magentostudy_news</table> <!-- DB table name --> | |
</news> | |
</entities> | |
</news_resource> | |
</models> | |
<!-- Other content omitted for brevity --> | |
</global> | |
</config> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment