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 Media View 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?
Share
Looking at the source code of
media.php, it seems that you can’t do this directly using that view. Unless anybody has a better idea, I’m tempted to modify the view to support acontentparameter.