Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

How to set smarty options #37

Open
MrFloppy opened this issue Nov 17, 2014 · 3 comments
Open

How to set smarty options #37

MrFloppy opened this issue Nov 17, 2014 · 3 comments

Comments

@MrFloppy
Copy link

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

@tassoevan
Copy link
Contributor

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

@MrFloppy
Copy link
Author

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.

@silentworks
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants