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