Chapter 1. Overview

Table of Contents
What is Smarty?
How Smarty works

What is Smarty?

Smarty is a template engine for PHP. One of the unique aspects about Smarty is that it compiles the template files into native PHP scripts upon the first invocation. After that, it just executes the compiled PHP scripts. Therefore, there is no costly template file parsing for each request, and each template can take full advantage of PHP compiler cache solutions such as Zend Cache (http://www.zend.com) or PHP Accelerator (http://www.php-accelerator.co.uk).

Some of Smarty's features: