The Volt Template Engine allows you to display data with control structures. Views of any complexity can be created to manage the way your models are presented. In this recipe, we will demonstrate how to achieve beautiful presentations of your models using Volt control structures.
For successful implementation of this recipe, you need to have any application with the configured Volt Template Engine service. In our example, we will use a template application generated by means of the Phalcon Developer Tools, however, you can use any other application that you have set.
Additionally, we need a database where we will create several tables. In this recipe, we will use MySQL as the RDBMS with a root user and without a password. However, you can use any other RDBMS or username/password combination you like.
To demonstrate the flexibility of control structures, we will generate our application entirely by using the scaffold
command in Phalcon Developer Tools....