Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a view event

- add "ViewEvent::EVENT_RENDERER_POST"
  • Loading branch information...
commit e55cff03573c5e33de76b77c204e49bda156a504 1 parent 0abbba9
ClemensSahs authored
Showing with 4 additions and 0 deletions.
  1. +3 −0  library/Zend/View/View.php
  2. +1 −0  library/Zend/View/ViewEvent.php
3  library/Zend/View/View.php
View
@@ -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
1  library/Zend/View/ViewEvent.php
View
@@ -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';
/**#@-*/
Please sign in to comment.
Something went wrong with that request. Please try again.