View Single Post
  #17 (permalink)  
Old 11-14-2008, 02:02 AM
mark44 mark44 is offline
Junior Member
 
Join Date: Nov 2008
Posts: 2
Default

Brand new to Zend, but the above post is the answer. Luckily I actually wanted a single error handler for all of my modules, at least to start out with.

All I needed in my bootstrap was:

Code:
$front->registerPlugin(new Zend_Controller_Plugin_ErrorHandler(array(
    'module'     => 'error',
    'controller' => 'error',
    'action'     => 'error'
)));
Whereby I have an 'error' module, with an ErrorController.php in the controllers directory which defines the Error_ErrorController class with an errorAction() method in it.

Works like a clock. Catches missing modules, missing controllers across different modules, etc.
Reply With Quote