Magento Module Development Series – Part6- Module – Models

In this blog, we will learn about magento models, and how to perform basic sql operations.

Model are used to logical + data operations in MVC pattern. In magento, these are used for the same propose.
In this blog, we will continue on the previous blog created, will make these changes to the config.xml file. Continue reading

Magento Module Development Series – Part7 – Database and SQL Operations

In this blog we will see advanced operations in model and collection, to execute complex sql queries. We will look into collections and details of resource models.

First let’s look at model and collection architecture in magento. If you look at a magento model class it extends Mage_Core_Model_Abstract which intern extends Varien_Object. Continue reading