magento getModel

Mage::getModel() will create a new instance of an object each time even such object exists in configuration.

$ikodes1 = Mage::getModel('catalog/product');
$ikodes2 = Mage::getModel('catalog/product');

$ikodes1 and $ikodes2 both have different instant of same object and also occupy different memory

Related posts