如下所示:
PHP;">
//系统常量定义
//去THinkPHP手册中进行查找
echo "
"."网站的根目录地址".__ROOT__." "; echo "
"."入口文件地址".__APP__." "; echo "
"."当前模块地址".__URL__." "; echo "
"."当前URL地址".__SELF__." "; echo "
"."当前操作地址".__ACTION__." "; echo "
"."当前模块的模板目录".__CURRENT__." "; echo "
"."当前操作名称".ACTION_NAME." "; echo "
"."当前项目目录".APP_PATH." "; echo "
"."当前项目名称".APP_NAME." "; echo "
"."当前项目的模板目录".APP_TMPL_PATH." "; echo "
"."项目的公共文件目录".APP_PUBLIC_PATH." "; echo "
"."项目的配置文件目录".CONFIG_PATH." "; echo "
"."项目的公共文件目录".COMMON_PATH." "; //自动缓存与表相关的全部信息 echo "
"."项目的数据文件目录".DATA_PATH." runtime下的data目录"; echo "
"." ".GROUP_NAME.""; echo "
"." ".IS_CGI.""; echo "
"." ".IS_WIN.""; echo "
"." ".LANG_SET.""; echo "
"." ".LOG_PATH.""; echo "
"." ".LANG_PATH.""; echo "
"." ".TMPL_PATH.""; //js放入的位置,供多个应用的公共资源 echo "
"." ".WEB_PUBLIC_PATH."";
"."网站的根目录地址".__ROOT__." "; echo "
"."入口文件地址".__APP__." "; echo "
"."当前模块地址".__URL__." "; echo "
"."当前URL地址".__SELF__." "; echo "
"."当前操作地址".__ACTION__." "; echo "
"."当前模块的模板目录".__CURRENT__." "; echo "
"."当前操作名称".ACTION_NAME." "; echo "
"."当前项目目录".APP_PATH." "; echo "
"."当前项目名称".APP_NAME." "; echo "
"."当前项目的模板目录".APP_TMPL_PATH." "; echo "
"."项目的公共文件目录".APP_PUBLIC_PATH." "; echo "
"."项目的配置文件目录".CONFIG_PATH." "; echo "
"."项目的公共文件目录".COMMON_PATH." "; //自动缓存与表相关的全部信息 echo "
"."项目的数据文件目录".DATA_PATH." runtime下的data目录"; echo "
"." ".GROUP_NAME.""; echo "
"." ".IS_CGI.""; echo "
"." ".IS_WIN.""; echo "
"." ".LANG_SET.""; echo "
"." ".LOG_PATH.""; echo "
"." ".LANG_PATH.""; echo "
"." ".TMPL_PATH.""; //js放入的位置,供多个应用的公共资源 echo "
"." ".WEB_PUBLIC_PATH."";
以上这篇thinkPHP配置文件路径的实现方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持编程之家。
原文链接:https://www.f2er.com/thinkphp/19096.html