different behaviour of postDispatch()?
Hello,
I'm new to Zend Framework and I do not understand the different behaviour of postDispatch() depending on the method's place.
In action controller's postDispatch() it's possible to alter vars from the view object but in controller plugin's postDispatch() altering is not possible, it seems the view rendering is finished.
Background: we have an event handler and plugin manager in our project, plugins can be announced to special events. I tried to use a controller plugin to trigger all 6 event methods (routeStartup to dispatchLoopShutdown) with our own event manager. But plugin code cannot alter the view (resulting output is not altered). When the same event is triggered direct in the action controller's postDispatch() the same plugin code can alter the view.
|