优化服务器目录与系统目录冲突问题

feat/task1-c-wallet
devil 2020-04-04 18:48:10 +08:00
parent 18cf35818b
commit 8c02fed9ef
1 changed files with 1 additions and 1 deletions

View File

@ -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);