예제 #1
0
 /**
  * @param $doctype
  */
 public function setDoctype($doctype)
 {
     ViewModel::$doctype = $doctype;
 }
예제 #2
0
 /**
  * @return ViewModel
  */
 public function _notFound()
 {
     $model = new ViewModel('application/error');
     $model->addVariable('error_type', '404');
     return $model;
 }
예제 #3
0
 /**
  * @param ViewModel $view
  * @return mixed
  */
 public function renderView($view)
 {
     $view->setAvailable($this->getApplication()->getViews());
     return $view->render();
 }