Example #1
0
 /**
  * 实例化
  *
  * @return obj
  */
 public static function getInstance()
 {
     if (self::$instance === null || !self::$instance instanceof Tpl) {
         self::$instance = new Tpl();
     }
     return self::$instance;
 }
Example #2
0
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new Tpl();
     }
     return self::$instance;
 }