Try and debug the Twig templating
This commit is contained in:
parent
5f2e7476ff
commit
e7aabff62c
@ -37,7 +37,10 @@ class Middlewares
|
|||||||
|
|
||||||
// Twig
|
// Twig
|
||||||
$templateCache = false;
|
$templateCache = false;
|
||||||
$twig = Twig::create(APP_TEMPLATES_DIR, [ 'cache' => $templateCache ]);
|
$twig = Twig::create(APP_TEMPLATES_DIR, [
|
||||||
|
'cache' => $templateCache,
|
||||||
|
'debug' => true,
|
||||||
|
]);
|
||||||
|
|
||||||
// Add the global variables
|
// Add the global variables
|
||||||
$twig->getEnvironment()->addGlobal('site_name', $config->get('site.name'));
|
$twig->getEnvironment()->addGlobal('site_name', $config->get('site.name'));
|
||||||
|
Loading…
Reference in New Issue
Block a user