Exemplo n.º 1
0
 /**
  * 初始化视图
  * @access public
  * @param array $config  配置参数
  */
 public static function instance(array $config = [])
 {
     if (is_null(self::$instance)) {
         self::$instance = new self($config);
     }
     return self::$instance;
 }
Exemplo n.º 2
0
Arquivo: View.php Projeto: GDdark/cici
 /**
  * 初始化视图
  * @access public
  * @param array $engine  模板引擎参数
  * @param array $replace  字符串替换参数
  * @return object
  */
 public static function instance($engine = [], $replace = [])
 {
     if (is_null(self::$instance)) {
         self::$instance = new self($engine, $replace);
     }
     return self::$instance;
 }