ThinkPHP常用配置路径
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 |
//系统常量定义 //去THinkPHP手册中进行查找 echo "<br>" . "网站的根目录地址" .__ROOT__. " " ; echo "<br>" . "入口文件地址" .__APP__. " " ; echo "<br>" . "当前模块地址" .__URL__. " " ; echo "<br>" . "当前url地址" .__SELF__. " " ; echo "<br>" . "当前操作地址" .__ACTION__. " " ; echo "<br>" . "当前模块的模板目录" .__CURRENT__. " " ; echo "<br>" . "当前操作名称" .ACTION_NAME. " " ; echo "<br>" . "当前项目目录" .APP_PATH. " " ; echo "<br>" . "当前项目名称" .APP_NAME. " " ; echo "<br>" . "当前项目的模板目录" .APP_TMPL_PATH. " " ; echo "<br>" . "项目的公共文件目录" .APP_PUBLIC_PATH. " " ; echo "<br>" . "项目的配置文件目录" .CONFIG_PATH. " " ; echo "<br>" . "项目的公共文件目录" .COMMON_PATH. " " ; //自动缓存与表相关的全部信息 echo "<br>" . "项目的数据文件目录" .DATA_PATH. " runtime下的data目录" ; echo "<br>" . " " .GROUP_NAME. "" ; echo "<br>" . " " .IS_CGI. "" ; echo "<br>" . " " .IS_WIN. "" ; echo "<br>" . " " .LANG_SET. "" ; echo "<br>" . " " .LOG_PATH. "" ; echo "<br>" . " " .LANG_PATH. "" ; echo "<br>" . " " .TMPL_PATH. "" ; //js放入的位置,供多个应用的公共资源 echo "<br>" . " " .WEB_PUBLIC_PATH. "" ; |
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。