![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
test.html:
使用模版的测试
当前的时间是{currenttime}!
abc.php:
<?php
include("../commom/template.inc.php");
$timeNow=date("l dS \of F Y h:i:s A");
$tpl=new Template();
$tpl->set_file("handle1","test.html");
$tpl->set_var("currenttime",$timeNow);
$tpl->parse("output","handle1",true);
$tpl->p("output");
?>
格式上有错误吗?
提问者:mensan2006 08-21 16:04
答复

