Php 对非对象调用成员函数getCollection()以加载magento中的模型
我在加载存储模块的Magento中遇到错误Php 对非对象调用成员函数getCollection()以加载magento中的模型,php,magento,magento-1.7,Php,Magento,Magento 1.7,我在加载存储模块的Magento中遇到错误 /** @var $websiteCollection Mage_Core_Model_Store */ $storeCollection = Mage::getModel('core/store')->getCollection() ->initCache($this->getCache(), 'app', array(Mage_Core_Model_Store::CACHE_TAG)) ->setLoadDe
/** @var $websiteCollection Mage_Core_Model_Store */
$storeCollection = Mage::getModel('core/store')->getCollection()
->initCache($this->getCache(), 'app', array(Mage_Core_Model_Store::CACHE_TAG))
->setLoadDefault(true);
而且我越来越高兴了
致命错误:在第20379行的/var/www/html/includes/src/_default.php中的非对象上调用成员函数getCollection()
当我试图调用模块时,它返回false
var_dump(get_class(Mage::getModel('core/store')));exit;
如何修复它?我猜
('core/store')
你确定这是正确的吗,资本化等等?@James,是的,它是正确的。这是工作,但经过几天没有任何修改,它显示了这个错误。