下面thinkphp框架教程欄目將給大家介紹下{$smarty.const.__SELF__}是什么意思,希望對(duì)需要的朋友有所幫助!
問(wèn)題描述:
請(qǐng)問(wèn)在thinkphp中的{$smarty.const.__SELF__}
是什么意思,我只搜到了THINK.const.__SELF
分析解答:
smarty是一個(gè)PHP模板引擎;
然后說(shuō)的這個(gè)$smarty.const是他的一個(gè)語(yǔ)法,用來(lái)直接訪問(wèn)PHP的常量。
參考:
https://www.smarty.net/docs/zh_CN/language.variables.smarty.tpl
{$smarty.const.__SELF__}
連起來(lái)就是在這個(gè)模板引擎中,直接訪問(wèn)你定義的php常量__SELF__
推薦:《最新的10個(gè)thinkphp視頻教程》