deirathe - 2009-10-21 13:18:03 -
In reply to message 1 from Dave Kelly
You just need to copy all stuff from frea direcotry, put into desired directory, and create autoload function:
function __autoload($cn)
{
$file = "yourdirectory".DIRECTORY_SEPARATOR.str_replace("_",DIRECTORY_SEPARATOR,$cn).".php";
if(is_readable($file))
require_once($file);
}
then just create a template file in desired directory, and create new Template object:
$tpl = new Template();
$tpl->somevar = "some value";//here we are passign variable to template file
$tpl->applyTemplates("my.tpl");//here we parse templatefile
And that's all. Templates are still in development so in near future I will add autoload register function and much more;)
Best regards