Magento
M70-201 · Question #54
Which three of the following will return an instance of a resource model? (Choose three)
The correct answer is A. Mage::getResourceModel( 'customer/customer1); B. Mage::getResourceSingleton('customer/customer'); E. Mage::getModel('customer/customer')->getResource(). See the full explanation below for the reasoning.
Question
Which three of the following will return an instance of a resource model? (Choose three)
Options
- AMage::getResourceModel( 'customer/customer1);
- BMage::getResourceSingleton('customer/customer');
- CMage::getModel('customer/customer')->getResourceModel();
- DMage::getResourceModel('customer/customer')->getInstance();
- EMage::getModel('customer/customer')->getResource();
- FMage:: getRe sour ceModel 'customer/customer' )->getRe source ();
How the community answered
(37 responses)- A78% (29)
- C14% (5)
- D3% (1)
- F5% (2)
Community Discussion
No community discussion yet for this question.