For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > July 2005 > RE: [PEAR] Templates HOWTO?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PEAR] Templates HOWTO?
Thomas

2005-07-24, 8:39 pm


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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com