public function displayTemplate($file, $params = array()) { $template = new TemplatePage($file); $template->assign($params); $result = $template->display(); App::setTranslation('templates/' . $this->file); return $result; }
protected static function displayPage($file) { $template = new TemplatePage($file); $template->assignGlobals(self::$templateGlobals); $template->assign(self::$templateVars); $result = $template->display(); App::setTranslation('controllers/' . App::getController()); return $result; }
protected static function displayPage($file) { $template = new TemplatePage($file); $template->assignGlobals(self::$templateGlobals); $template->assign(self::$templateVars); $result = $template->display(); return $result; }