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/'; }
/** * VAR目录 * @return type */ function varPath() { return hmvc\HApplication::varPath(); }