Zend Framework how to set headers

前端 未结 5 1802
天命终不由人
天命终不由人 2020-12-13 09:08

I have a question, how can I do something like this:

header(\"Content-Disposition: inline; filename=result.pdf\"); 
header(\"Content-type: application/x-pdf\         


        
5条回答
  •  粉色の甜心
    2020-12-13 09:58

    Late to the table, I can recommend this action helper as a simple, reusable component for sending files or in memory data to the browser.

    Has options for caching, disposition and can utilise Apache Sendfile

提交回复
热议问题