Chapter 7. The Presentation Layer
This chapter explains how templates are created, extended, included, and displayed in Symfony. We will start with base templates and then add layers and layers of other components on top of it. The other important subject that we will discuss in this chapter is the popular frontend framework called Bootstrap. The Bootstrap framework is a slick and modern frontend package, which almost every new web application benefits from. We will see how to integrate and use this framework in Symfony.
We will also see how to use Symfony's amazing asset management component, Assetic
, to organize images, .css, and .js files and, at the same time, optimize the project performance.
After the basic appearance of the project has been created in this chapter, we will be ready to modify or add new functionality to each page in the following chapters.