在一个下载的模块中,有一个特定的调用Mage::getModel('module/statistic_collection'),这给出了路径为Namespace/Module/Model/Statistic/Collection.php的failed to open stream: No such file or directory错误,但它存在于Namespace/Module/Model/Mysql4/Statistic/Collection.php中。
那么我如何告诉magento他们需要添加Mysql4文件夹呢?
发布于 2013-02-21 03:25:02
您有两个选择:
Mage::getResourceModel('module/statistics_collection')或
Mage::getModel('module/statistics')->getCollection()https://stackoverflow.com/questions/14986919
复制相似问题