Exemplo n.º 1
0
 public function init()
 {
     parent::init();
     $this->getView()->on(BaseView::EVENT_BEGIN_PAGE, [$this, 'beginPage']);
     $this->getView()->on(BaseView::EVENT_BEGIN_BODY, [$this, 'beginBody']);
     $this->getView()->on(BaseView::EVENT_BEFORE_RENDER, [$this, 'beforeRender']);
     $this->getView()->on(BaseView::EVENT_AFTER_RENDER, [$this, 'afterRender']);
     $this->getView()->on(BaseView::EVENT_END_BODY, [$this, 'endBody']);
     $this->getView()->on(BaseView::EVENT_END_PAGE, [$this, 'endPage']);
     $this->getView()->on(BaseView::EVENT_AFTER_PAGE, [$this, 'afterPage']);
     LuLu::getResponse()->on(Response::EVENT_AFTER_SEND, [$this, 'afterResponse']);
 }