I have a controller called Account and an action called logout. It's pretty simple:
<?php
class AccountController extends CustomControllerAction
{
public function logoutAction()
{
Zend_Auth::getInstance()->clearIdentity();
$this->_redirect('/account/login');
}
But for some reason I'm getting a uncaught exception
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
I'm not having a problem with any other actions or controllers. my loginAction works fine. My registerAction works fine....
Anyone know why this is happening?
Jonesy