Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
Archivo: Web.php Proyecto: angoz/pagon
 /**
  * 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));
 }