Example #1
0
<?php

include '../SinglePHP.class.php';
$config = array('APP_PATH' => './App/');
SinglePHP::getInstance($config)->run();
Example #2
0
 /**
  * 获取单例
  * @param array $conf
  * @return SinglePHP
  */
 public static function getInstance($conf)
 {
     if (!self::$_instance instanceof self) {
         self::$_instance = new self($conf);
     }
     return self::$_instance;
 }