thinkphp框架的路径

假如你项目首页的URL是:www.mylgq.com/other/Form
假如当前模块是:Index
假如当前操作是:index
那么首页完整的URL:http://www.mylgq.com/other/Form/index.php/Index/index

模板中的路径:
__ROOT__:/other/thinkphp/mydemo __SELF__:/other/thinkphp/mydemo/Form/index.php __ACTION__: /other/thinkphp/mydemo/Form/index.php/Index/index __URL__: /other/thinkphp/mydemo/Form/index.php/Index __APP__: /other/thinkphp/mydemo/Form/index.php __PUBLIC__:/other/thinkphp/mydemo/Public

以上缩写仅适用于模板中使用,如在php中则使用U方法做URL路由来实现。


原文地址:https://www.cnblogs.com/lgqtecng/p/6553648.html