脚本宝典收集整理的这篇文章主要介绍了zend-framework – Zend Framework模块化应用程序,无法为每个模块加载模型,自动加载模型?,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
class Contacts_CodesController extends Zend_Controller_Action { public function inIT() { /* Initialize action controller here */ $this->view->messages = $this->_helPEr->flashmessenger->getMessages(); } public function indexAction() { $codesTable = new Contacts_Model_Codes(); }
代码型号:
class Contacts_Model_Codes extends Zend_Db_Table { PRotected $_name = 'codes'; }
我得到的错误:
致命错误:第26行的/Applications/MAMP/htdocs/zf_site/application/modules/contacts/controllers/CodesController.PHP中找不到类’Contacts_Model_Codes’
谢谢
class Contacts_Bootstrap extends Zend_Application_Module_Bootstrap { }
以上是脚本宝典为你收集整理的zend-framework – Zend Framework模块化应用程序,无法为每个模块加载模型,自动加载模型?全部内容,希望文章能够帮你解决zend-framework – Zend Framework模块化应用程序,无法为每个模块加载模型,自动加载模型?所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。