Slim-Views
Slim-Views copied to clipboard
How to set smarty options
Is there a way to set smarty options like "setCaching" or else?
There is a public property in Smarty view for that: https://github.com/codeguy/Slim-Views/blob/master/Smarty.php#L61-64
That was kind of an example. I cannot set the cache lifetime with that (as an example). But there are surely some more options I like to set in Smarty.
@MrFloppy you have access to the smarty instance by doing $app->view()->getInstance()
, you can do all your smarty related tasks there.