Home  >  Article  >  php教程  >  How to make ThinkPHP's template engine achieve optimal efficiency

How to make ThinkPHP's template engine achieve optimal efficiency

WBOY
WBOYOriginal
2016-08-04 08:57:081289browse

By default, the template engine used by the ThinkPHPframework system is the built-in template engine. The built-in template engine supports the mixed use of PHP native code and template tags in template files.


ThinkPHPThe official development documentation says that the performance of this default built-in template engine is efficient, but it is not optimal. To achieve optimal performance of the template engine, it is necessary to use PHP itself as the template engine.

Using PHP itself as a template engine is actually very simple, just configure it in the project's configuration file Conf/config.php:

'TMPL

Statement:
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