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

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

{$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. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool