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