RE: [PEAR] Templates HOWTO?

From: Date: Fri, 22 Jul 2005 14:13:27 +0000
Subject: RE: [PEAR] Templates HOWTO?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20095@lists.php.net to get a copy of this message
Hey Martin, You could always look at Smarty (one of the best documented engines out there) for your templating needs. It all depends what exactly you need to do with your pages. Smarty gives you a whole load full of options and with that comes a large base class that needs to load every time. I had a look at some of the templating engines out there and liked Flexy the most (that is now PEAR). It seems less obtrusive in the html and is relatively light as class, so little load times. On top of that it gives you the most useful options, and the possibility to extend that for your special needs. Tutorial wise, Flexy is a little un-helpful. The tutorial in the PEAR manual is not bad (gives you the main idea and what to do with some extra functions) but it does not go into much detail (a lot of it seems to be guess work for me). BTW, you should be familiar with using classes. Otherwise, there are a whole bunch of solutions out there, but like I said, you should first sit down and find out what exactly you want to do with your pages, then find the engine that best suits your needs. Another thing, you should also look at Caching your pages, so you don't have to load and parse on every call. For that you could have a look at Cache_Lite, also part of PEAR. Enjoy! Thomas -----Original Message----- From: Martin Klaffenboeck [mailto:martin.klaffenboeck@gmx.at] Sent: 22 July 2005 03:06 PM To: pear-general@lists.php.net Subject: [PEAR] Templates HOWTO? Hello there! I'm not sure, if I'm right here. Is there anywhere a good tutorial or howto to implement templates with PEAR? If it is not to bad I would take my whole site and implement templates now. But: Is it easy? Does it take much time? Which template engine should I take (there are a few in the PEAR Documentation). How do I start? (Links?) And just a little question to see the flexibility of the example. Can I order grouped QuickForm elements like checkboxes order in a table where we have n items and if n is greater x use a second column, and so on... Thanks for you help. Martin -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.general (#20095) next »