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

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация