- Member | 12
I'm trying to define a global variable for all the app in order to get the base path to attach to any image, but I could not find it in the documentation.
I'm trying adding
$httpRequest = $container->getService('httpRequest');
to the Home contruct function, and after that, passing the result of
getBasePath() function to the template. But it's not working.
Anyone could please tell me how to do this?
Thanks a lot.
Last edited by albertosanchezm (2014-03-01 23:30)