1. '__TMPL__'
=> APP_TMPL_PATH,
// 项目模板目录
2. '__ROOT__'
=> __ROOT__,
// 当前网站地址
3. '__APP__'
=> __APP__,
// 当前项目地址
4. '__GROUP__'
=> defined(
'GROUP_NAME'
)?__GROUP__:__APP__,
5. '__ACTION__'
=> __ACTION__,
// 当前操作地址
6. '__SELF__'
=> __SELF__,
// 当前页面地址
7. '__URL__'
=> __URL__,
8. '../Public'
=> APP_TMPL_PATH.
'Public'
,
// 项目公共模板目录
9. '__PUBLIC__'
=> __ROOT__.
'/Public'
,
// 站点公共目录
这里介绍的标签主要有: __root__ __self__ __action__ __url__ __app__ __public__
假如你项目首页的URL是:www.test.com/other/Form
假如当前模块是:Index
假如当前操作是:index
那么首页完整的URL:http://www.test.com/other/Form/index.php/Index/index
1 __ROOT__:/other/thinkphp/mydemo
2 __SELF__:/other/thinkphp/mydemo/Form/index.php
3 __ACTION__: /other/thinkphp/mydemo/Form/index.php/Index/index
4 __URL__: /other/thinkphp/mydemo/Form/index.php/Index
5 __APP__: /other/thinkphp/mydemo/Form/index.php
6 __PUBLIC__:/other/thinkphp/mydemo/Public
7 ../public(不区分大小写):/other /thinkphp/mydemo/Form/Tpl/default/Public
8 APP_PUBLIC_URL:/other/thinkphp/mydemo/Form/Tpl/default/Public
9 WEB_PUBLIC_URL:/other/thinkphp/mydemo/Public