/** * After logic */ protected function after() { $body = new View($this->tpl, $this->data + $this->app->locals, array('dir' => $this->app->views)); $this->app->render($this->layout, array('body' => $body->render()) + $this->data); }
/** * Render template * * @param $tpl */ protected function render($tpl) { $body = new View($tpl, get_object_vars($this) + $this->app->locals, array('dir' => $this->app->views)); $this->app->render($this->_tpl_layout, array('body' => $body->render()) + get_object_vars($this)); }