public function header()
{
//判断session
$online=true;
if($online)
{
$content = $this->fetch('Public:header_online');
}
else
{
$content = $this->fetch('Public:header_offline');
}
$this->show($content);
return $content;
}header_online.html和header_offline.html都是用utf-8无bom编码,直接display输出时,中文正常。如果是fetch解析再输出,就乱码了。求助。。
最佳答案