예제 #1
0
파일: Web.php 프로젝트: MenZil-Team/inews
 /**
  * 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);
 }
예제 #2
0
파일: Web.php 프로젝트: 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));
 }