Explain the difference between Mage::getSingleton() and Mage::getModel() in Magento?
Answer»
S.no
Mage::getSingleton()
Mage::getModel()
1.
It will first CHECK the same CLASS instance is exists or not in memory. If the instance is created then Mage::getSingleton() will return the same OBJECT from memory.
The Mage::getModel() will create a NEW instance of an object every TIME even such purposes exists in configuration.