News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Daniel Cousineau's Blog:
Quickie Module-specific Error Controllers in Zend Framework (1.5)
August 12, 2008 @ 07:56:17

Daniel Cousineau has posted a "quickie" over on his blog today dealing with error controllers in a Zend Framework application.

In my quest to do some alterations on ZF error handling (in particular, render the view if the action or controller is not found, makes it real easy for my designer to prototype) I had the desire to be able to allow modules to have their own ErrorControllers. Unfortunately, the Zend_Controller_Plugin_ErrorHandler() default does not allow for this and I didn't really want to extend that class (I planned on handling the rendering in the ErrorControllers) so I wrote up a quick plugin.

His plugin (code included in the post) hooks into the routeShutdown part of the routing process and overrides the default error handler for the module to pass the request off to his custom one.

0 comments voice your opinion now!
zendframework module controller error handler routeshutdown


blog comments powered by Disqus

Similar Posts

Matthew Weier O'Phinney's Blog: Module Bootstraps in Zend Framework: Do's and Don'ts

Zend Developer Zone: Zend Webinar Wednesdays: Zend Framework 1.0 - An Overview

Matthew Weier O'Phinney's Blog: Code Generation with Zend\CodeGenerator

Ibuildings techPortal: Unit Testing Databases with Zend Framework

Daniel Cousineau's Blog: Quickie: Module-specific Error Controllers in Zend Framework (1.5)


Community Events

Don't see your event here?
Let us know!


language community opinion release introduction podcast laravel voicesoftheelephpant example framework interview list api extension library series laravel5 version php7 security

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework