Using the MVC Model
In this section, we will learn how the MVC (Model View Controller) model works and how to use it for creating a standalone web page that works outside the document scope. This is very important for covering all possible needs that you may encounter on your path with Pimcore as a Content Management System.
The MVC principle is very easy. When a URL matches a set of rules (Routing), a controller class is activated and this will compute data (Model) using certain business logic (Controller). The data is then sent to the View that implements the presentation logic and shows content to the user.
In this section, we will cover the most important concepts relating to building embedded web pages using the MVC pattern:
- Controllers
- Views (template helpers)
- Routing
Let's see them in detail.
Controllers
Pimcore Controllers implement the "C" part of the MVC pattern. Controllers are responsible for business logic or, in simpler...