Try and debug the Twig templating

This commit is contained in:
Dave Smith-Hayes 2024-11-24 22:22:57 -05:00
parent 5f2e7476ff
commit e7aabff62c

View File

@ -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'));