Add line in bootstrap file
This commit is contained in:
parent
f3f36b333c
commit
2b24a4263c
@ -84,6 +84,7 @@ class Bootstrap
|
|||||||
$templatePath = __DIR__ . "/../templates";
|
$templatePath = __DIR__ . "/../templates";
|
||||||
$templateCache = false;
|
$templateCache = false;
|
||||||
$twig = Twig::create($templatePath, [ 'cache' => $templateCache ]);
|
$twig = Twig::create($templatePath, [ 'cache' => $templateCache ]);
|
||||||
|
|
||||||
// Add the global variables
|
// Add the global variables
|
||||||
$twig->getEnvironment()
|
$twig->getEnvironment()
|
||||||
->addGlobal('site_name', $config->get('site.name'));
|
->addGlobal('site_name', $config->get('site.name'));
|
||||||
|
Loading…
Reference in New Issue
Block a user