thinkphp let. /public in template analysis (direct output) method original, thinkphpfont_php tutorial

Source: Internet
Author: User

thinkphp let. /public in template analysis (direct output) method original, Thinkphpfont


The examples in this paper describe thinkphp let. /public methods that are not parsed in the template. Share to everyone for your reference. Specific as follows:

Problem:

The template contains: /public need direct output, but. /public will be replaced directly with the current public template directory, with the final output as:/project directory/tpl/default/public/

Workaround:

To add a template constant setting in profile config.php:

' tmpl_parse_string ' = = Array ('.. /public ' = '. /public ",)//template engine The string to be replaced automatically must be in the form of an array.

Here will be. The/public is set to output as is.

It is hoped that this article is helpful to everyone's thinkphp program design.

http://www.bkjia.com/PHPjc/1058138.html www.bkjia.com true http://www.bkjia.com/PHPjc/1058138.html techarticle thinkphp Let. /public in the template analysis (direct output) of the original method, Thinkphpfont The example of this article tells the thinkphp let. /public methods that are not parsed in the template. Share for everyone to join us ...

  • 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.