Permalink
Browse files

add a view event

- add "ViewEvent::EVENT_RENDERER_POST"
  • Loading branch information...
1 parent 0abbba9 commit e55cff03573c5e33de76b77c204e49bda156a504 @ClemensSahs committed Oct 29, 2012
Showing with 4 additions and 0 deletions.
  1. +3 −0 library/Zend/View/View.php
  2. +1 −0 library/Zend/View/ViewEvent.php
@@ -186,6 +186,9 @@ public function render(Model $model)
));
}
+ $event->setRenderer($renderer);
+ $results = $events->trigger(ViewEvent::EVENT_RENDERER_POST, $event);
+
// If we have children, render them first, but only if:
// a) the renderer does not implement TreeRendererInterface, or
// b) it does, but canRenderTrees() returns false
@@ -27,6 +27,7 @@ class ViewEvent extends Event
* View events triggered by eventmanager
*/
const EVENT_RENDERER = 'renderer';
+ const EVENT_RENDERER_POST = 'renderer.post';
const EVENT_RESPONSE = 'response';
/**#@-*/

0 comments on commit e55cff0

Please sign in to comment.