|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
ZeroFill Smarty Rookie
Joined: 31 Aug 2003 Posts: 28
|
Posted: Sun Sep 28, 2003 12:55 am Post subject: parsing templates from the db? |
|
|
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 |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
|
Back to top |
|
ZeroFill Smarty Rookie
Joined: 31 Aug 2003 Posts: 28
|
Posted: Sun Sep 28, 2003 7:09 pm Post subject: |
|
|
W00T!!! Thanks for the linkage messju! _________________ my delimiters are <{ and }> |
|
Back to top |
|
|
|
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
|