Home > PHP Framework > ThinkPHP > body text

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

藏色散人
Release: 2021-11-24 15:54:33
forward
2270 people have browsed it

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:

Lets 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

Lets 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
Copy after login

{$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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template