0

I inherited the maintaining of a php 1.0 website that uses the zend framework. And I have really no experience with this framework. I changed the wording on a page and received the following error message. I have know idea where to begin fixing this problem.

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)  

Please help, Yvette.

4

1 回答 1

0

我认为您需要使用方法创建类 Agreements_IndexController

public function indexAction() { }

并把它放在这里application/modules/agreements/controllers/IndexController.php。并且不要忘记创建视图文件,application/modules/agreements/views/sctipts/index/index.phtml.

使用基本配置应该会有所帮助。

于 2013-08-28T20:31:05.470 回答