tp5.1使用路径常量

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

对应的

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/

你可能感兴趣的:(tp5.1使用路径常量)