Got a Twig template for a small product finder. It’s displayed on every page of the webseite.
The data displayed in it is fetched from database and enriched with some additional things before assigned to the view.
Where should I add that global functionality, that is called at any page? My idea is the BaseController inside the onKernelController() Function? Or is there a better and more practicable way?
Thx a lot in advance!