Home> PHP Framework> YII> body text

Why doesn't Yii have a template engine?

Release: 2019-12-17 13:39:21
Original
1964 people have browsed it

Why doesn't Yii have a template engine?

Yii Framework is a component-based, high-performance PHP framework for developing large-scale web applications. YII does not have a template engine, but you can add it yourself in the form of an extension, but YII does not recommend you do this.

PHP itself is the best template engine (currently),You can get a smarty, or something else. It's fundamentally anti-human. There is already a lot to learn in PHPer, and you still have to master a set of products that you may no longer use after changing jobs.

The second thing is that when debugging, because the template engine has to be compiled into PHP eventually, when the program reports an error, it is difficult for you to locate the specific error location immediately. Secondly, you have to often read the manuals of these template engines to see what parameters this loop template has.

For example, there is a domestic software with a template tag that executes SQL statements. Since the product itself is not well written, problems will arise when writing SQL statements containing the symbols < >.

PHP Chinese website has a large number of freeYii introductory tutorials, everyone is welcome to learn!

The above is the detailed content of Why doesn't Yii have a template engine?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
yii
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!