Hello, I'd like to develop a module based application and want to assign an own ErrorHandler class for each module. So I have a structure like this:
/public /controllers IndexController.php ErrorController.php /admin /controllers IndexController.php ErrorController.php /user /controllers IndexController.php ErrorController.php The entire Applciation uses one very simple bootstrap: $frontController = Zend_Controller_Front::getInstance(); $frontController->setControllerDirectory(array( '' => '../application/public/controllers/', 'admin' => '../application/admin/controllers/', 'user' => '../application/user/controllers/' )); $frontController->returnResponse(true); $response = $frontController->dispatch(); $response->sendResponse(); I know that I can change the default forward to ErrorController::errorAction() by calling Zend_Controller_Plugin_ErrorHandler::setErrorHandlerModule() but this alone wont help. How can I assign the ErrorHandler dynamically accordingly to the currently routed module? What is best practice in this case. Any help and hints are welcome. Best regards /Ralf Kramer