コード例 #1
0
 public function loadTemplate($name)
 {
     //set view so that exception can be thrown without setting template_name
     sgView::getInstance()->loadTemplate("{$name}.html");
     $this->template_structure = explode('/', $name);
     $this->template_name = end($this->template_structure);
 }
コード例 #2
0
ファイル: sgView.class.php プロジェクト: superglue/Superglue
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     return self::$instance;
 }