您的位置 首页 php

说说TP框架中{$smarty.const.__SELF__}是什么意思

下面thinkphp框架教程栏目将给大家介绍下{$smarty.const.__SELF__}是什么意思,希望对需要的朋友有所帮助!

问题描述:

c3796d8d34eb53ab78ed5c476be0bf5.png

请问在thinkphp中的{$smarty.const.__SELF__}是什么意思,我只搜到了THINK.const.__SELF

efcd42f9df515af15db9b7c6f963ee3.png

分析解答:

smarty是一个PHP模板引擎;

然后说的这个$smarty.const是他的一个语法,用来直接访问PHP的常量。

参考:

https://www.smarty.net/docs/zh_CN/language.variables.smarty.tpl

{$smarty.const.__SELF__}连起来就是在这个模板引擎中,直接访问你定义的php常量__SELF__

推荐:《最新的10个thinkphp视频教程》

文章来源:智云一二三科技

文章标题:说说TP框架中{$smarty.const.__SELF__}是什么意思

文章地址:https://www.zhihuclub.com/24453.shtml

关于作者: 智云科技

热门文章

网站地图