2013-08-28 68 views
0

我繼承了使用zend frameworkphp 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) 

請幫忙,Yvette。

回答

0

我認爲你需要創建類Agreements_IndexController與方法

public function indexAction() { }

,並把它放在這裏application/modules/agreements/controllers/IndexController.php。並且不要忘記創建視圖文件,application/modules/agreements/views/sctipts/index/index.phtml

使用基本的配置,它應該有所幫助。