我在doc中保存了一些东西但是它添加了html
<?
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=document_name.doc");
echo 'hi';
?>
,它在文档文件中显示它,然后是页面的完整HTML。我做错了什么
$this->autoRender = false;
this did it
我在doc中保存了一些东西但是它添加了html
<?
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=document_name.doc");
echo 'hi';
?>
,它在文档文件中显示它,然后是页面的完整HTML。我做错了什么
$this->autoRender = false;
this did it