Closed dexterns88 closed 9 years ago
What configuration do you need?
@dexterns88 What configuration do you need?
I need to extend twig function with some php function and maybe to add configuration for turn off/on cache and patch to cache folder and similar.
Now you can configure cache
option: https://github.com/kenjis/codeigniter-ss-twig#loading-twig-library
If you want to add twig function, you can get Twig_Environment
instance using $this->twig->getTwig()
.
$twig = $this->twig->getTwig();
$twig->addFunction($function);
If you have still any suggestions, please feel free to create a new issue.
Can you add configuration for twig in codeigniter.