我有一个名为Account的控制器和一个名为logout的操作。这很简单:
<?php
class AccountController extends CustomControllerAction
{
public function logoutAction()
{
Zend_Auth::getInstance()->clearIdentity();
$this->_redirect('/account/login');
}
但由于某种原因,我得到了一个未被捕获的例外
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in /Library/WebServer/Documents/phpweb20/include/Zend/Controller/Dispatcher/Standard.php:248 Stack trace: #0 /Library/WebServer/Documents/phpweb20/include/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /Library/WebServer/Documents/phpweb20/htdocs/index.php(67): Zend_Controller_Front->dispatch() #2 {main} thrown in /Library/WebServer/Documents/phpweb20/include/Zend/Controller/Dispatcher/Standard.php on line 248
我没有任何其他动作或控制器的问题。我的loginAction工作正常。我的registerAction工作得很好....
任何人都知道为什么会这样吗?
Jonesy