function ShowErrorPage($message) { $smarty = new Smarty(); $smarty->template_dir = '/components/templates'; $smarty->assign('Message', $message); $captions = GetCaptions('UTF-8'); $smarty->assign('Captions', $captions); $common = new CommonPageViewData(); $common->setTitle($captions->GetMessageString('Error'))->setHeader(GetPagesHeader())->setFooter(GetPagesFooter()); $smarty->assign('common', $common); $smarty->display('error_page.tpl'); }
/** * @return CommonPageViewData */ public function getCommonViewData() { $viewData = new CommonPageViewData(); return $viewData->setDirection($this->GetPageDirection())->setContentEncoding($this->GetContentEncoding())->setTitle($this->GetCaption())->setValidationScripts($this->GetValidationScripts())->setHeader($this->GetHeader())->setFooter($this->GetFooter())->setCustomHead($this->GetCustomPageHeader())->setClientSideScript('OnBeforeLoadEvent', $this->GetCustomClientScript())->setClientSideScript('OnAfterLoadEvent', $this->GetOnPageLoadedClientScript()); }