* enable auto_reload option for twig

This commit is contained in:
slawkens1 2017-10-05 00:48:34 +02:00
parent 6d66dc9043
commit 755deae717

View File

@ -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) {