I would like execute code before all actions in my project (to calculate an important global variable). How to set a pre-action function in my controllers ?
There's no pre-action method in Symfony2. You have to use event listeners for that purpose.
1.4m articles
1.4m replys
5 comments
57.0k users