在下載的模塊是有特定的呼叫Mage::getModel('module/statistic_collection')
,這給了我的failed to open stream: No such file or directory
誤差與路徑Namespace/Module/Model/Statistic/Collection.php
但在Namespace/Module/Model/Mysql4/Statistic/Collection.php
存在。
那麼我怎麼能告訴magento他們需要添加Mysql4
文件夾?Magento的收集上Mysql4 =沒有這樣的文件或目錄
0
A
回答
2
你有兩個選擇:
Mage::getResourceModel('module/statistics_collection')
或
Mage::getModel('module/statistics')->getCollection()
+0
好的非常感謝你...事實上,之前有Mage :: getResourceModel,但我讀了getModel + getCollection == getResourceModel,所以我將其替換,並得到這個錯誤...所以我的問題不是這樣,但我發現它是因爲你的提示:-) – Shadowbob 2013-02-21 09:59:55
相關問題
- 1. 沒有這樣的文件或目錄 - Magento的錯誤
- 2. 沒有這樣的文件或目錄?
- 3. 沒有這樣的文件或目錄
- 4. scp上傳文件:沒有這樣的文件或目錄
- 5. Mac上的崇高:沒有這樣的文件或目錄
- 6. Heroku的Windows上 - 「沒有這樣的文件或目錄」
- 7. cv.h沒有這樣的文件或目錄,但有這樣的文件
- 8. 錯誤:使目錄:沒有這樣的文件或目錄
- 9. 沒有這樣的文件或目錄,但目錄在路徑
- 10. Errno :: ENOENT:Sass Watch命令上沒有這樣的文件或目錄
- 11. 克++ - 4.2:在OSX上沒有這樣的文件或目錄10.12.4
- 12. 沒有這樣的文件或目錄的文件----- stdarg.h和float.h?
- 13. pytesseract沒有這樣的文件或目錄OSError沒有2
- 14. gradlew沒有找到(沒有這樣的文件或目錄)
- 15. 沒有這樣的文件或目錄使用腳本文件
- 16. Magento的安裝SQLSTATE [HY000] [2002]沒有這樣的文件或目錄錯誤
- 17. Python:「[Errno 2]沒有這樣的文件或目錄」,目錄中有文件
- 18. 文件TXT:FileNotFoundError:[錯誤2]沒有這樣的文件或目錄
- 19. 錯誤「沒有這樣的文件或目錄」與Makefile文件
- 20. 沒有這樣的文件或目錄,但存在文件
- 21. FileNotFoundException當讀取文件 - 沒有這樣的文件或目錄
- 22. 沒有這樣的文件或目錄 - Hadoop或HDFS錯誤
- 23. 沒有這樣的文件或目錄,怪異或什麼?
- 24. magento - Warning:require_once(app/Mage.php):無法打開流:沒有這樣的文件或目錄
- 25. Magento後端擴展未能打開流:沒有這樣的文件或目錄
- 26. Arch Linux的:讓 - 沒有這樣的文件或目錄
- 27. 通過php上傳的文件:沒有這樣的文件或目錄
- 28. Python:沒有這樣的文件或目錄
- 29. Python py2exe [Errno 2]沒有這樣的文件或目錄:'glew32.dll'
- 30. 條件返回「沒有這樣的文件或目錄」
嘗試從'法師改變它:: getModel( '模塊/ statistic_collection')''到法師:: getModel('模塊/統計') - > getCollection()' – Kalpesh 2013-02-20 19:16:40