Summary
In this chapter, we got deeper inside the controller’s instantiation process for FO and BO.
We saw that for FO and BO controllers, many constants were initialized inside /config/config.inc.php
and /config/defines.inc.php
. Some custom constants can be set inside /config/defines_custom.inc.php
, depending on your needs. All the database access and cookies parameters can be updated in /app/config/parameters.php
.
For legacy BO and FO core controllers, routing is managed by the Dispatcher
class located in /classes/Dispatcher.php
, whereas for Symfony-based controllers, the Symfony routing component manages it.
It is now time to jump into the FO controller mechanics and see how an FO controller works, retrieves data, uses ObjectModel-based objects, and displays data with the templating engine, which is the topic of the next chapter.