Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Compile out of database?

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
atDev
Smarty Rookie


Joined: 21 Jun 2010
Posts: 22

PostPosted: Mon Jun 21, 2010 6:43 pm    Post subject: Compile out of database? Reply with quote

We use a database admin area to let users edit templates.

When a template is saved is there any way to have smarty automatically compile it and or write it to cache?

Trying to avoid having to retreive the template file from the database every time it is needed. It is simply written whenever saved.
Back to top
View user's profile Send private message
glennj
Smarty n00b


Joined: 09 Sep 2010
Posts: 3

PostPosted: Thu Sep 09, 2010 12:27 pm    Post subject: Reply with quote

I'm doing a similar thing at the moment.

Checkout my other post in the forum.
http://www.smarty.net/forums/viewtopic.php?p=66746#66746

I'll post my solution when it's ready, I think I've worked it out.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP