phplib如何包括文件
以前html和php混编的时候使用include就可以包括一个文件 ,现在使用phplib后,php跟html分离后,将html放在单独的文件夹内,然后
$top=require("Template/top.htm");
include "Template/template.inc";
$t = new Template();
$t->set_file("MyFileHandle","Template/reg.htm");
$t->set_var("top",$top);
$t->parse("MyOutput","MyFileHandle");
$t->p("MyOutput");
在reg.htm
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
{top}
<body>
</body>
</html>
不会显示那个top.htm.为什么,谢谢了。