tp5.1使用路径常量

echo "app_path=========".Env::get('app_path')."</br>";
        echo "root_path=========".Env::get('root_path')."</br>";
        echo "think_path=========".Env::get('think_path')."</br>";
        echo "config_path=========".Env::get('config_path')."</br>";
        echo "extend_path=========".Env::get('extend_path')."</br>";
        echo "vendor_path=========".Env::get('vendor_path')."</br>";
        echo "runtime_path=========".Env::get('runtime_path')."</br>";
        echo "route_path=========".Env::get('route_path')."</br>";
        echo "module_path=========".Env::get('module_path')."</br>";

对应的

app_path=========/www/wwwroot/ceshi2/application/
root_path=========/www/wwwroot/ceshi2/
think_path=========/www/wwwroot/ceshi2/thinkphp/
config_path=========/www/wwwroot/ceshi2/config/
extend_path=========/www/wwwroot/ceshi2/extend/
vendor_path=========/www/wwwroot/ceshi2/vendor/
runtime_path=========/www/wwwroot/ceshi2/runtime/
route_path=========/www/wwwroot/ceshi2/route/
module_path=========/www/wwwroot/ceshi2/application/wxoa/

posted @ 2020-02-07 15:08  大尹  阅读(1652)  评论(0编辑  收藏  举报