I think you all are confusing Templates with simple server side including oh header and footer files. Templates are actually chunks of html code with placeholders in it, then you use a template engine like FastTemplate or PHPLIB's tempalte class to define and use the templates. For instance you have a user admin page that has something like
PHP Code:
//Contents of templatefile.ihtml
<table>
<tr>
<td>Name:</td>
<td>{name}</td>
</tr>
</table>
So you could use a template engine to read in the template and fill in the labels with data from somewhere and then print it to the screen. To do this with PHPLIB something like this
PHP Code:
include("template.inc");
$t = new Template;
$t->set_file("template_handle","templatefile.ihtml");
$t->set_var("name", "Bob Smith");
$t->pparse("out", "template_handle");
Which wold produce the following html
PHP Code:
<table>
<tr>
<td>Name:</td>
<td>Bob Smith</td>
</tr>
</table>
This is a very simple and crude example of what can be accomplished with the templates.
Bookmarks