smarttemplate包含头尾文件时,遇到的问题
在下面这个程序中, header.php和footer.php分别是返回解析好的文件,采用$tpl->result()。
问题是我照下面这样写,只能输出footer.php的内容,好象把header.php给覆盖了,大家看下,问题出在哪里了?
<?
$tpl->assign('header',require_once('header.php'));
$tpl->assign('footer',require_once('footer.php'));
$tpl->output();
?>