are you sure it is app_media.php then? i only got it to work by leaving it the same name "media.php" in /app/ views/
mark On 31 Mrz., 21:45, "Mark (Germany)" <dereurom...@googlemail.com> wrote: > nice :) > thx > > On 31 Mrz., 15:17, Matt Curry <m...@mcurry.net> wrote: > > > I had to do this with pdf/xls files returned by a webservice. I took > > the default media view (/cake/libs/views/media.php) and copied it to / > > app/views/app_media.php. > > > Then I modified it so that it checked for a $content view var and > > wrote that to a tmpfile. > > Here's the diff:http://bin.cakephp.org/view/1310700342 > > > -Matthttp://www.pseudocoder.com > > > On Mar 30, 1:05 pm, "Mark (Germany)" <dereurom...@googlemail.com> > > wrote: > > > > i tried to use the media view for files generated on thefly(some > > > exported text inside a export.txt or whatever) > > > but it seems like the media view can only handle downloads of > > > "existing" files on the server > > > > trying to rewrite it did not turn out very well > > > so, did anyone manage to create a txt file to download, that is filled > > > with the echoed content > > > > echo 'blabla' > > > or > > > $content = 'blabla' transfered to the media view > > > > without creating locale (temp.) files on the server? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---