pdf.ctp 196 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 <?php $this->response->getHeaderLine([ 'Content-Disposition: attachment; filename="downloaded.pdf"' ]); $this->response->type('pdf'); $this->response->send(); echo $this->fetch('content'); ?>