title: How do you make a string available for download from a media view in CakePHP instead of a file?
body: <p>I have a CakePHP controller action where I would like to let the user download an HTML page for publishing through our internal CMS. I'm thinking that the notion of a <a href="http://book.cakephp.org/view/489/Media-Views" rel="nofollow noreferrer">Media View</a> is what I want, except that they seem to require a filename and path. I already have the HTML content stored in a string and if possible I would like to be able to avoid saving it to disk just to make this work. Does anybody know a way of passing the content to Media Views as a string rather than as a filename and path?</p>