From e7aabff62c386ae608b49692a9e089b3cb17ffbd Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Sun, 24 Nov 2024 22:22:57 -0500 Subject: [PATCH] Try and debug the Twig templating --- app/src/Middlewares.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/Middlewares.php b/app/src/Middlewares.php index bb1575d..f07fe9c 100644 --- a/app/src/Middlewares.php +++ b/app/src/Middlewares.php @@ -37,7 +37,10 @@ class Middlewares // Twig $templateCache = false; - $twig = Twig::create(APP_TEMPLATES_DIR, [ 'cache' => $templateCache ]); + $twig = Twig::create(APP_TEMPLATES_DIR, [ + 'cache' => $templateCache, + 'debug' => true, + ]); // Add the global variables $twig->getEnvironment()->addGlobal('site_name', $config->get('site.name'));