Now ,i have two file (header.tpl,output.php)
Header.tpl
<HEAD>
<TITLE>Test site - {PAGE_TITLE}</TITLE>
</HEAD>
<BODY
<H1>{PAGE_TITLE}</H1>
{CONTENT}
</BODY>
output.php
<?php
include "class.FastTemplate.php";
$tpl = new FastTemplate(".");
$tpl->define(array("toplevel" => "Header.tpl"));
$tpl->assign("TITLE", "site name");
$tpl->assign("CONTENT", "something");
$tpl->parse("MAIN", "toplevel");
$tpl->FastPrint();
?>
But after i running it, it show...
Warning: Failed opening 'class.FastTemplate.php' for inclusion (include_path='.:/usr/local/lib/php') in /usr/home/uhomeu/XXXXX/output.php on line 2
Fatal error: Cannot instantiate non-existent class: fasttemplate in /usr/home/uhomeu/XXXXX/output.php on line 5
what worong in it? Where is wrong?
Thanks a lot for your help