public function __construct() { parent::__construct(); self::$_app = $this; self::$webApp = new \hmvc\Web\Application(); \hmvc\HApplication::$rootPath = dirname(\hmvc\HApplication::$rootPath) . '/'; \hmvc\HApplication::$varPath = dirname(\hmvc\HApplication::$rootPath) . DS . 'var/'; }
/** * 获取根目录 * @return type */ function rootPath() { return hmvc\HApplication::rootPath(); }