标签: php codeigniter-3
while
这是我的控制器,没有错误,但它会自动下载pdf文件,并且未在网络浏览器中查看
答案 0 :(得分:0)
将Content-disposition设置为在标题中内联:
Content-disposition
header("Content-disposition: inline;filename=".$id);