thinkphp5.1 获取根目录

use think\facade\Env;
Env::get('root_path'); 
 
 
https://www.kancloud.cn/manual/thinkphp5_1/354155
posted @ 2021-02-03 14:07  酷酷的城池  阅读(643)  评论(0编辑  收藏  举报