我正在尝试在 Magento 中获取已查看产品的列表,但以下代码:
$model = Mage::getModel('reports/product_index_viewed')->getCollection()
->addAttributeToFilter('store_id', array('eq' => 1));
创建了错误消息:
致命错误:在第 816 行对 C:\xampp\htdocs\magento\app\code\core\Mage\Eav\Model\Entity\Abstract.php 中的非对象调用成员函数 getBackend()
为什么 getCollection() 中返回的集合是非对象?