Page 1 of 1

Looking for an alternative to pears HTML_TEMPLATE_IT

Posted: Thu Feb 15, 2007 12:22 pm
by giles
Hi,

I’ve been studying a project recently which uses pear’s HTML_TEMPLATE_IT (http://pear.php.net/package/HTML_Template_IT) as a way of creating template pages that are filled with data from my databases at the time of serving. The idea is really neat, and saves loads of time, AND ISN’T SUPPORTED by my service provider It strikes me that the obvious choice is to look for alternatives, but I’m not finding much. I’m sure that this can’t be the only example of using templates in dynamic pages, but I’m getting a bit stuck.

I’d really appreciate it if you could advise me of any other templates ... or should I bite the bullet and upgrade to a virtual domain (where I can apparently run PEAR) because it really is the best for the job!

Thanks
Giles

Posted: Thu Feb 15, 2007 12:28 pm
by Oren
Maybe this can help? http://pear.php.net/manual/en/installation.shared.php
If not, have you tried Smarty?

Posted: Thu Feb 15, 2007 5:59 pm
by AKA Panama Jack
Or my smaller, faster alternative to Smarty. :)

Link in my signature. :)

Posted: Sun Feb 18, 2007 1:21 pm
by Ambush Commander
PEAR can be installed manually, but it's a PITA, esp since authors have a penchant for packaging their library in a way that isn't analogous to the final layout.

I'd recommend investigating Smarty or Template Lite. If you're on PHP5, XSLT (it's built into PHP!) also would be something to look into.

Virtual hosting would give you a lot more flexibility, but it's not worth it for just PEAR.