Summary
In this chapter, we saw that all the old legacy-based BO pages are generated by controllers located in the /controllers/front/
folder. All those old BO controllers are child classes of the AdminController
class defined in the /classes/controller/AdminController.php
file. AdminController
is a child of the Controller
class defined in the /
classes/controller/Controller.php
file.
AdminController
prepares all the data for the setup of the frame of the back office. All the AdminController
child classes managing the old BO views rely on useful classes extending the Helper
class to generate recurrent HTML views such as editing forms or list tables with HelperForm
or HelperList
.
Since v1.7 of PrestaShop, the migration from the old legacy-based controllers to the Symfony modern controllers has been ongoing. New Symfony BO controllers extend the FrameworkBundleAdminController
class. All Symfony controllers now benefit from the possibilities offered by the Symfony framework. The...