which template engine to use?
| From: | hypodyne | Date: | Sat, 07 Feb 2004 07:56:17 +0000 |
| Subject: | which template engine to use? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-10535@lists.php.net to get a copy of this message | ||
Gday all
I am building a site which I would like to use templates.
Its basically a simple CMS like xoops that uses PEAR.
Ive had a little experience using HTML_Template_IT which is really good.
But for this I need a template system which can handle multiple templates.
One for the site theme and one for the page contents.
It needs to be part of standard PEAR.
I've looked at Integrated Template Extension - ITX but can find no docs for
it.
I've looked at HTML_Template_Sigma but dosent seem to be part of the
standard pear.
Another question is your filenames in pear.
For the Integrated templates class you name it IT.php
and then the docs update refer to it like
<?php
require_once "HTML/Template/IT.php";
$tpl = new HTML_Template_IT("./templates");
?>
which gives lots of errors but this works...
<?php
require_once('HTML/IT.php');
$tpl = new IntegratedTemplate("./templates");
?>
is the documentation out of date... if so do you need a hand keeping it up
to date