In any framework that follows the MVC paradigm, we need to work with the View
component (\Phalcon\Mvc\View
). Developing a project with a framework means that the views should enjoy the same consideration as the rest of the application layers. It is therefore important to choose a friendly template engine, which can be integrated with the system as a whole, as well as with external dependencies such as JavaScript and CSS, for your project. This template engine must be:
Easy to use for both developers and layout designers
Flexible enough to allow the accomplishment of complex tasks, such as AJAX requests, displaying static or dynamic data, or interaction with external libraries
Efficient in both speed of execution as well as memory consumption
Phalcon offers this kind of template engine; it is called the Volt Template Engine. It is easy to use and currently the fastest template engine in the PHP framework world. Volt is written for PHP with C and inspired by the Jinja template engine...