questions

2 Answers

Magento Collection on Mysql4 = No such file or directory

Asked by: AydenMorgan 1677 views ,
Questions

I downloaded a module and inside it there’s a particular call as:
Mage::getModel(‘module/statistic_collection’), this provides me the error message “failed to open stream: No such file or directory” through this path: Namespace/Module/Model/Statistic/Collection.php however it occurs here: Namespace/Module/Model/Mysql4/Statistic/Collection.php .

So, how do i express magento that they must add some Mysql4 folder ?

2 Answers

  1. Best Answer


    Magento Expert on May 19, 2013

    Hi,

    Try use or replace the code here Collection.php with

    Mage::getResourceModel(‘module/statistics_collection’)

    or

    Mage::getModel(‘module/statistics’)->getCollection()

    Cheers!

    0 Votes Thumb up 2 Votes Thumb down 2 Votes



    • AydenMorgan on Jul 30, 2013

      Thank you for the solution, its working fine now.

      Regards
      Ayden

      +1 Votes Thumb up 2 Votes Thumb down 1 Votes


Answer Question