create a csv.thtml (or .ctp) layout and put that it:

<?php header("Content-Type: application/csv-tab-delimited-table"); ?>
<?php echo $content_for_layout ?>

I use it for PDF and works perfectly!

On 15 mar, 06:37, "Tazz" <[EMAIL PROTECTED]> wrote:
> Hi, I want to create a view that will output a csv file so i need to
> set it's mime type when rendering the page so the browser can detect
> the file as coma delimitted...
>
> How would I do so?
>
> Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to