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