I'm new to Magento 2.
Fatal error: Class 'Mage' not found in \vendor\magento\module-theme\view\base\templates\root.phtml on line 23
Can anybody tell me how to solve this?
Mage is deprecated at mageno2.
Magento2, not using factory Patten types like Mage::getModel ,Mage::getsingleton() etc
Using class nameSpace concept
How to use ObjectManager concept at magento 2 ,please checkout at
It looks like the theme you installed is not compatible with Magento 2.
Aparently it has a
Mage::...() call in one of the files.
in magento 2 call the model any where
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $model = $objectManager->create('\Namespace\Modulename\Model\Modulename');