Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-13-2007, 03:35 AM
Junior Member
 
Join Date: Dec 2007
Location: Leipzig, Germany
Posts: 1
Default 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:31 PM.