|
Posted by Matthew Weier O'Phinney on 04/07/05 05:30
* James Williams <php@jamwil.com>:
> Hey fellas, I'm makin a forum right now and as a sub project, I'm making
> a template engine / class. Right now all it does is variable
> replacement, however I am curious as to how I can implement support for
> loops and if statements. I would appreciate any ideas that you may
> have, thank-you!
Why are you re-inventing the wheel? There are many PHP template engines
out there -- use one of those, and contribute if you find performance
issues or lacking features.
Some popular ones:
* Smarty
* Savant
* Flexy
--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org
Navigation:
[Reply to this message]
|