I have a question, how can I do something like this:
header(\"Content-Disposition: inline; filename=result.pdf\"); header(\"Content-type: application/x-pdf\
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