I'm trying to get Media Views up and running, to download PDFs. I'm on
a completely new and fresh CakePHP install. This is my action:
function download() {
$this->autoRender = false;
$this->view = 'Media';
$params = array(
'id' => 'test.pdf',
'name' => 'test',
'download' => true,
'extension' => 'pdf',
'path' => APP . 'files' . DS
);
$this->set($params);
}
However, the result is just a blank screen. The file definitely exists
in the right spot.
What am I missing?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php