Solved: http://www.weberdev.com/get_example-4182.html
On 7 Sep., 21:35, "Benedikt R." <[email protected]> wrote: > Hi! > > Is it possible, to return the content of a file instead of any html? > > for example i have the > url:http://localhost/documents/download/download/433/file.pdf > > This is just a routing thing. Read it > as:http://localhost/documents/download/download/>>record_id<</>>fileName<< > > This page normally renders a view - as always. But instead, I want the > page to return the content of the file: > /Applications/MAMP/htdocs/app/webroot/files/documents/2009-09-07/433 > > Is there a good way to do this? > > Regards, > benedikt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
