コード例 #1
0
ファイル: Command.php プロジェクト: h1soft/h
 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/';
 }
コード例 #2
0
ファイル: Common.php プロジェクト: h1soft/h
/**
 * VAR目录
 * @return type
 */
function varPath()
{
    return hmvc\HApplication::varPath();
}