} /**
* Listener method of the Enlight_Controller_Action_PostDispatch event.
* If the current view instance has a template and the template should be rendered,
* the template renders and the view template of the Enlight_Controller_Action
* initials.
*/
public function onPostDispatch(Enlight_Event_EventArgs
$args) { if ($this->
shouldRender() &&
$this->
Action()->
View()->
hasTemplate()) { $this->
render();
} $this->
setNoRender(false
);
} /**
* Listener method of the Enlight_Controller_Action_PreDispatch event.
* If the current view instance has a template and the template should be rendered,
* the template is loaded by name.
*/
public function onPreDispatch(Enlight_Event_EventArgs
$args) {