Closed sir-gawain closed 12 years ago
Hello :) Yes, the error handler behaves pretty much just like a _forward() to a different module and forwarding is not currently supported by Ztal. We are considering a number of possible solutions specifically to the error handler but Zend themselves are on record saying that the use of _forward() is not recommended and should be avoided so we have no immediate plans to tackle support for _forward() itself.
I believe since we changed ZTal to use the Zend_View getScriptPaths() method as the basis of its template paths there is no longer a problem with errors and forwarding. I am aware that the default translation domain is setup when the ZTal view is constructed during dispatchLoopStartup and so will be wrong but except for this minor exception I believe this issue is now closed :)
When using Zend_Controller_Plugin_ErrorHandler for handling exceptions or other errors Ztal cannot find the template for the error action. this is because the module path is saved before the action is handled. But ErrorHandler does redirect of the action to Default Module... so Ztal is looking up the right template file in the wrong Module directory. The same problem will occur, if someone uses action->_forward() with an target module other than the current one.