Home  >  Article  >  PHP Framework  >  Let’s talk about what {$smarty.const.__SELF__} means in the TP framework

Let’s talk about what {$smarty.const.__SELF__} means in the TP framework

藏色散人
藏色散人forward
2021-11-24 15:53:522215browse

The followingthinkphp frameworkThe tutorial column will introduce to you what {$smarty.const.__SELF__} means. I hope it will be helpful to friends in need!

Problem description:

Let’s talk about what {$smarty.const.__SELF__} means in the TP framework

What is the {$smarty.const.__SELF__} in thinkphp? What does it mean? I only found THINK.const.__SELF

Let’s talk about what {$smarty.const.__SELF__} means in the TP framework

## Analysis and answer:

smarty is a PHP template engine;

The $smarty.const mentioned above is a syntax used to directly access PHP constants.

Reference:

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

{$smarty.const.__SELF__}The connection is in this template engine, directly accessing the php constants you define__SELF__

Recommended: "

The latest 10 thinkphp video tutorials"

The above is the detailed content of Let’s talk about what {$smarty.const.__SELF__} means in the TP framework. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete