Magento
M70-101 · Question #90
The initial call to ______________ will create and return an instance of the specified class. Subsequent calls to this method during the same execution cycle will return the same class instance as…
The correct answer is D. Mage::getSingleton ('modulename/modelname'). See the full explanation below for the reasoning.
Question
The initial call to ______________ will create and return an instance of the specified class. Subsequent calls to this method during the same execution cycle will return the same class instance as opposed to creating a new one.
Options
- AMage::getResourceModel ('namespace/modulename');
- BMage::getInstance ('namespace/modulename');
- CMage::getModel ('modulename/modelname');
- DMage::getSingleton ('modulename/modelname');
How the community answered
(22 responses)- A5% (1)
- B5% (1)
- C9% (2)
- D82% (18)
Community Discussion
No community discussion yet for this question.