Looking back at some OLD code when I had this working (circa 1.3.1 ish) the following is the only difference between you code and mine essentially - as far as I can see
$this->autoLayout = false; but it is as Cricket says you need to debug at 0 for it to work which makes debugging very hard. it might be worth you while trying a fresh baked app and setting up media views with nothing else (you might have some beforeFilter code that causes media view to not work) seeing things work in a simple set up may provide a clue to the cause and CakeDC article hints at the same :) http://cakedc.com/florian_kraemer/2010/01/25/file-uploading-file-storage-and-cakephp-mediaview-class - S On 28 October 2010 01:03, Rez <[email protected]> wrote: > > Thanks for the reply > > It is trying to open the page download and there is no effect of header > I have set the autoRender to false and only a blank page is opened? > I am really confused. I feel like I am ignoring something very basic. > > > -- > View this message in context: > http://cakephp.1045679.n5.nabble.com/force-download-using-Media-views-tp3238139p3239739.html > Sent from the CakePHP mailing list archive at Nabble.com. > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
