diff --git a/public/core.php b/public/core.php index 9ee8f2544f1c41db4d37ad59931e5524a176bd87..079e7b30e3b1d824a4193349e4564c720d284303 100755 --- a/public/core.php +++ b/public/core.php @@ -43,7 +43,7 @@ define('__MY_VIEW_URL__', substr(__MY_URL__, 0, -1).$request_url); define('ROOT_PATH', str_replace('\\', DS, dirname(__FILE__)).DS); // 系统根目录 去除public -define('ROOT', str_replace('public'.DS, '', ROOT_PATH)); +define('ROOT', substr(ROOT_PATH, 0, -7)); // 定义应用目录 define('APP_PATH', ROOT.'application'.DS);