How to define global variables, global functions for controller page?
For example I need to use a variable "$idleTime" in almost all the functions of controller class. So where to define that global variable "$idleTime" in Symfony2 Framework?
How to define global variables, global functions for controller page?
For example I need to use a variable "$idleTime" in almost all the functions of controller class. So where to define that global variable "$idleTime" in Symfony2 Framework?