Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain the difference between mage::getmodel() and mage::getsingletone() in magento.



Explain the difference between mage::getmodel() and mage::getsingletone() in magento...

Answer / Poornima Yadav

Both methods are used to instantiate a Magento model, but they differ in how they handle object lifetime. `Mage::getModel()` creates a new instance of the specified model every time it's called, while `Mage::getSingleton()` retrieves an existing singleton instance if one exists; otherwise, it creates and caches the instance for future use.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Magento PHP Interview Questions

how you can move Magento to another Directory?

1 Answers  


Is magento a software?

1 Answers  


How to add a home link to the menu bar?

1 Answers  


When you need to clear the cache to see the changes made in magento?

1 Answers  


What are the product type exist in magento?

1 Answers  


Explain registry pattern in magento?

1 Answers  


Define magento.

1 Answers  


How do you create a custom module in magento?

1 Answers  


What is the starting point for magento admin area?

1 Answers  


Is magento free?

1 Answers  


What is sku?

1 Answers  


How many types of sessions are there in magento?

1 Answers  


Categories