Re: Adding Loop / If support to a simple template engine

From: Date: Thu, 07 Apr 2005 02:30:39 +0000
Subject: Re: Adding Loop / If support to a simple template engine
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-212479@lists.php.net to get a copy of this message
* 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

« previous php.general (#212479) next »