Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

parsing templates from the db?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
ZeroFill
Smarty Rookie


Joined: 31 Aug 2003
Posts: 28

PostPosted: Sun Sep 28, 2003 12:55 am    Post subject: parsing templates from the db? Reply with quote

is it possible for smarty to parse data coming from the database? I'm building a csm for a fansite that i want to be based off smarty. so, instead of giving every moderator/designer ftp accounts, i can let them login to the site and edit the pages on the site itself. (they work in dw or their favorite editor then cut/paste the new content to the form and submit it to the db)

we have specific variables such as <{$root}> which points back to the root document and <{$iroot}> which points back to the images folder. they will traverse back via ../../images than /images so the site is more portable.

and will do <{foreach from=$races item="race"}> where it will loop though several races such as orc, nightelf, human, etc.
_________________
my delimiters are <{ and }>
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Sun Sep 28, 2003 6:42 am    Post subject: Reply with quote

yep, see: http://smarty.php.net/manual/en/templates.from.elsewhere.php Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ZeroFill
Smarty Rookie


Joined: 31 Aug 2003
Posts: 28

PostPosted: Sun Sep 28, 2003 7:09 pm    Post subject: Reply with quote

W00T!!! Thanks for the linkage messju!
_________________
my delimiters are <{ and }>
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General 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