mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* enable auto_reload option for twig
This commit is contained in:
parent
6d66dc9043
commit
755deae717
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user