Hi bakers,

I want to use the media view component to manage downloads of files
that reside on a different server

function download() {
                $this->view = 'Media';
                $params = array(
                        'id' => 'afile.pdf',
                        'name' => 'afile',
                        'download' => true,
                        'extension' => 'pdf',
                        'path' => '\\host\disk_d\files\'
                );
                $this->set($params);
}

<path> is relative to APP as put in media.php line 111. Do I have to
modify the file ( take out the APP constant ) to make that work? Is
there a more elegant way?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to