Define global $basepath variable
Notice: This thread is very old.
- albertosanchezm
- Member | 12
Hello,
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
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)
- Patrik Votoček
- Member | 2221
you already have {$basePath}
in template https://api.nette.org/…rol.php.html#73