thinphp Template Replacement

Source: Internet
Author: User

Template substitution

Before the template output, the system will also do some template of the rendered template results of a special string substitution operation, that is, the implementation of template output substitution and filtering. Template substitution applies to all template engines, including native PHP templates. This mechanism can make the template file definition more convenient, the default substitution rules are: .. /public: The public template directory that will be replaced with the current project is usually/project directory/tpl/current topic/public/ __tmpl__: The template directory that will be replaced with the project is usually/project directory/tpl/Current topic/(Note: In order to deploy security considerations, the. /public and __tmpl__ no longer recommended) __public__: The public directory that will be replaced with the current site is usually/public/ __root__: Will replace the address of the current website (without the domain name) __app__: Will replace the URL address of the current project (without the domain name) __group__: Will replace the URL address of the current group (without the domain name) __url__: Will replace the URL address of the current module (without the domain name) __action__: Will replace the URL address of the current operation (without the domain name) __self__: Will replace the current page URL

thinphp Template Replacement

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.