mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-06 03:56:57 +08:00
优化服务器目录与系统目录冲突问题
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user