codeinchaos/restful-zend-framework — pull request #5 by tbrannam (2012-01-13 16:14:23+00:00)
Title: Module specific ErrorController was not being called

I have set of REST and non REST modules -- and it appears that the REST module was always getting the default ErrorController instead of the module specific one. (so I end up with a mixup of xml and html in the error response). This problem seems to be solved by others using this plugin.

Implementation based on http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/

Register in bootstrap:
$frontController->registerPlugin( new REST_Controller_Plugin_ErrorControllerSwitcher() );

Signed-off-by: Todd Brannam