Slim-Views icon indicating copy to clipboard operation
Slim-Views copied to clipboard

How to set smarty options

Open MrFloppy opened this issue 10 years ago • 3 comments

Is there a way to set smarty options like "setCaching" or else?

MrFloppy avatar Nov 17 '14 14:11 MrFloppy

There is a public property in Smarty view for that: https://github.com/codeguy/Slim-Views/blob/master/Smarty.php#L61-64

tassoevan avatar Nov 17 '14 14:11 tassoevan

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 avatar Nov 18 '14 08:11 MrFloppy

@MrFloppy you have access to the smarty instance by doing $app->view()->getInstance(), you can do all your smarty related tasks there.

silentworks avatar Dec 03 '14 11:12 silentworks