I have a project that uses Zend Framework 1. It has 2 modules: default and admin .
When an error occurs or exception , Zend directs to the ErrorController.
The problem is this: When an error occurs within the " default " module, it points to the ErrorController of the " default " module (this is correct). However, when an error occurs in the "admin" module, it also points to the ErrorController of the " default " module, causing the error to appear in layout site , instead of the layout of the admin.
I have an ErrorController in the "admin" module and I thought this was automatic. How do I direct the errors of the "admin" module to your ErrorController?