コード例 #1
0
ファイル: TemplatePage.php プロジェクト: swash13/shop
 public function displayTemplate($file, $params = array())
 {
     $template = new TemplatePage($file);
     $template->assign($params);
     $result = $template->display();
     App::setTranslation('templates/' . $this->file);
     return $result;
 }
コード例 #2
0
ファイル: Controller.php プロジェクト: swash13/shop
 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;
 }
コード例 #3
0
ファイル: Controller.php プロジェクト: alexelev/bmf
 protected static function displayPage($file)
 {
     $template = new TemplatePage($file);
     $template->assignGlobals(self::$templateGlobals);
     $template->assign(self::$templateVars);
     $result = $template->display();
     return $result;
 }