Ungültiger Controller angegeben (Fehler) - Zend Framework

Ich bekomme die ganze Zeit diesen Fehler:

Ausnahme 'Zend_Controller_Dispatcher_Exception' mit der Meldung 'Ungültiger Controller angegeben (Fehler)' in blub \ libraries \ Zend \ Controller \ Dispatcher \ Standard.php: 242

Ich habe eine Datei "ErrorController.php" im "controller" -Verzeichnis, die so aussieht:

class ErrorController extends Zend_Controller_Action
{
    public function errorAction()
    {
        // blub
    }
}

Mein Bootstrap sieht so aus:

protected function _initController()
{
    $this->_frontcontroller = Zend_Controller_Front::getInstance();
    $this->_frontcontroller->setControllerDirectory(APPLICATION_PATH . 'controllers/');
}

protected function _initRoute()
{
    $this->_route = $this->_frontcontroller->getRouter();
    $this->_route->addRoute('default', new Zend_Controller_Router_Route(
        ':controller/:action/*', array(
            'module'     => 'default',
            'controller' => 'index',
            'action'     => 'index'
        )
    ));
}

public function run()
{
    try {
        $this->_frontcontroller->dispatch();
    }
    catch (Exception $e) {
        print nl2br($e->__toString());
    }
}

application.ini

[bootstrap]
autoloadernamespaces[] = "Zend_"
autoloadernamespaces[] = "ZendX_"

[production]    
includePaths.library = APPLICATION_PATH "/libraries"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"

resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.throwexceptions = 0
resources.frontController.params.displayExceptions = 0


[development : production]
resources.frontcontroller.params.throwexceptions = 1
resources.frontController.params.displayExceptions = 1

Antworten auf die Frage(1)

Ihre Antwort auf die Frage