Magento
M70-101 · Question #90
M70-101 Question #90: Real Exam Question with Answer & Explanation
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');
Community Discussion
No community discussion yet for this question.