From 755deae717b11348a8a651c6575d415ccc82e1c3 Mon Sep 17 00:00:00 2001 From: slawkens1 Date: Thu, 5 Oct 2017 00:48:34 +0200 Subject: [PATCH] * enable auto_reload option for twig --- system/init.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/init.php b/system/init.php index 4ca0298b..0390f1a3 100644 --- a/system/init.php +++ b/system/init.php @@ -33,7 +33,8 @@ Twig_Autoloader::register(); $twig_loader = new Twig_Loader_Filesystem(SYSTEM . 'templates'); $twig = new Twig_Environment($twig_loader, array( - 'cache' => CACHE . 'twig/' + 'cache' => CACHE . 'twig/', + 'auto_reload' => true )); $function = new Twig_SimpleFunction('getStyle', function ($i) {