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