PHP template engine: PHP is an HTML-embedded scripting language that executes on the server side. The initial development template is the hybrid
Layer of data programming, although through the MVC design pattern can implement the application logic of the program and the Web page rendering logic force
Separation, but also just the input, processing, output of the program is separate, but the page rendering logic (view) will also have HTML code and
PHP programs are coupled together. The author of the PHP script must be the designer of the Web page and the developer of PHP. Such a person
Is the Phoenix hair of the chestnut.
The PHP template engine is a solution that can almost completely separate the design of a Web page from the PHP application.
The purpose of the template engine is to achieve the above mentioned logical separation function, allowing program developers to focus on the data
control or function, while web designers focus on the layout of the page. Let everyone play their strengths
Smarty is a PHP template engine based on PHP development. He provides a separation of logic and external content, simply speaking, the eye
is to use a PHP programmer to separate the artwork, the programmer to change the logical content of the program will not affect the art
Design, the art of re-modifying the page does not affect the program logic.
PHP template engine, smarty definition