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; }