在windows下用到模板,class.FastTemplate.php
听说还要进行一些配置,在哪里?php.ini,class.fastTemplate.php3 ?
<?php
//5-1.php ,5-1.tpl
include("class.fastTemplate.php3");
$tp1=new FastTemplate(".");
$tpl->define(array(main=>'5-1.tpl'));//这里为什么总是报错
$tpl->assign(title,"hello!");
$tpl->parse(Body,"main");
$tpl->FastPrint("body");
?>