Did you try to create a new layout file for images? Put something like this in it (this one is for PDF, just change it for the image type you need): <?php header("Content-type: application/pdf"); header("Content-Disposition: attachment; filename=document.pdf"); header("Pragma: no-cache"); header("Expires: 0"); echo $content_for_layout; ?>
In your controller, you can render the alternative layout using the following statement: $this->render(null, 'pdf', VIEWS . DS . 'controllername' . DS . 'viewname.thtml'); Jan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---