我继承了使用zend框架
的php 1.0
网站的维护工作。而且我对这个框架确实没有经验。我更改了页面上的措辞并收到以下错误消息。我知道从哪里开始解决这个问题。
Exception information:Message: Invalid controller specified (index) ,
#0 /usr/local/zend/share/ZendFramework/library/Zend/Controller/Front.php(954):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http))#1 /usr/local/zend/share/ZendFramework/library
/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#2 /usr/local/zend/share/ZendFramework/library/Zend/Application.php(366):
Zend_Application_Bootstrap_Bootstrap->run()
#3 /var/www/ispadmin/public/index.php(47): Zend_Application->run()
#4 {main} array: 'module' => string 'agreements' (length=10), 'controller' => string 'index' (length=5), 'action' => string 'index' (length=5)
请帮忙,伊薇特。
最佳答案
我认为您需要使用方法创建类Agreements_IndexController
公共(public)函数indexAction() { }
并将其放在此处application/modules/agreements/controllers/IndexController.php
。并且不要忘记创建 View 文件 application/modules/agreements/views/sctipts/index/index.phtml
。
通过基本配置应该会有所帮助。
关于php - 异常信息:Message: Invalid controller specified (index),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18497452/