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
Looking for an alternative to pears HTML_TEMPLATE_IT
Moderator: General Moderators
Maybe this can help? http://pear.php.net/manual/en/installation.shared.php
If not, have you tried Smarty?
If not, have you tried Smarty?
- AKA Panama Jack
- Forum Regular
- Posts: 878
- Joined: Mon Nov 14, 2005 4:21 pm
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
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.
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.