Smarty is a PHP template engine written by Monte Ohrt and Andrei Zmievski. What differentiates Smarty from other template engines is that Smarty compiles your templates into PHP scripts, eliminating the overhead incurred in parsing the templates every time they are accessed. This makes Smarty very scalable for large applications and high-traffic Websites. It is also very fast and would work well in stressful and high-traffic conditions.
One of Smarty’s primary goals is to facilitate the separation of application code from presentation. The application code contains the business logic of your application, written and maintained in PHP code, maintained by programmers. The presentation is the way your content is presented to the end user, which is written and maintained in template files, maintained by template designers.
Smarty caches the output of the template contents, saving the overhead expense involved in retrieving your data from a data source. Smarty also provides variable modifiers. As the name implies, this allows you to modify the contents of a variable like $title|upper will convert your $title into all uppercase characters.
One of Smarty’s primary goals is to facilitate the separation of application code from presentation. The application code contains the business logic of your application, written and maintained in PHP code, maintained by programmers. The presentation is the way your content is presented to the end user, which is written and maintained in template files, maintained by template designers.
Smarty caches the output of the template contents, saving the overhead expense involved in retrieving your data from a data source. Smarty also provides variable modifiers. As the name implies, this allows you to modify the contents of a variable like $title|upper will convert your $title into all uppercase characters.
Comment