Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Create a new Model class
 
matei
Jr. Member
 
Total Posts:  1
Joined:  2008-06-16
 

Hello,

In order to create a new table in the database and a module to make CRUD operations on this table, how do I create the model class for this table ? Which classes to i need to extend and how ? I think it is Mage_Core_Model_Abstract , but i am not sure how to extend it, what initialization code to use. Also it’s not very clear to me what resource models are and how they relate to the models derived from Mage_Core_Model_Abstract.

Thank you for your help

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top