If you don........t have an init method in your ErrorController class........ create one like this........ This chunk of code will replace that empty request object with an array of key
If you're using Zend Framework and AJAX together, this will show you how to make some minor modifications to the ErrorController so that if you get an error during an AJAX call, the calling javascript can receive some JSON instead of the standard HTML fro… http://zendtutorials.com/tutorial/changing-errorcontroller-to-work-with-ajax/