Looking for an alternative to pears HTML_TEMPLATE_IT

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
giles
Forum Commoner
Posts: 34
Joined: Thu Sep 14, 2006 2:34 pm

Looking for an alternative to pears HTML_TEMPLATE_IT

Post 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
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Maybe this can help? http://pear.php.net/manual/en/installation.shared.php
If not, have you tried Smarty?
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

Or my smaller, faster alternative to Smarty. :)

Link in my signature. :)
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
Post Reply