Hi Lauren,
that code that you're using should work fine, in fact I've tried it on
this end, and it works perfectly.
The only thing that comes to mind at this point, is to check your
controller file (or any file in your app folder), and check for extra
carriage returns at the very end of the file (after the ?> closing
tag), which might be screwing things up because they get sent to the
browser before the headers, messing up the image.
On May 25, 4:30 pm, lauren49 <[EMAIL PROTECTED]> wrote:
> Tried $controller->disableCach() which adds the following headers:
>
> header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> header("Cache-Control: no-store, no-cache, must-revalidate");
> header("Cache-Control: post-check=0, pre-check=0", false);
> header("Pragma: no-cache");
>
> Didn't work:\
> --
> View this message in
> context:http://www.nabble.com/Problems-displaying-an-image-from-a-controller-...
> Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---