|
|||
|
Hi all,
I would like to catch exceptions in my index.php and forward the request : $frontController = Zend_Controller_Front::getInstance(); $frontController->throwExceptions(true); try { $frontController->dispatch(); } catch (Exception $e) { // FORWARD } How can I do to go to /index/exception, which should call the method 'exceptionAction' of my IndexController ? Thanks for your help |
|
|||
|
Not what you asked for but this is probably what you need and want:
$controller->registerPlugin(new Zend_Controller_Plugin_ErrorHandler()); Read more here Zend Framework: Documentation |
![]() |
| Thread Tools | |
| Display Modes | |
|
|