Excel does read tabular html (including basic styles). You just need
to set the correct content type.

header("Content-disposition:attachment;filename=myexport.xls");
header("Content-type:application/vnd.ms-excel");

Alternatively, if you want to create a valid csv file you can use this
helper.

http://bakery.cakephp.org/articles/view/csv-helper-php5

Updated code (including PHP4 support): 
http://ifunk.net/cakephp/helpers/csv.php.txt

Cheers,
Adam

On Apr 17, 10:14 am, Correl <[EMAIL PROTECTED]> wrote:
> Hey,
>
> Does anyone know how I can export the main index to a csv or excel
> file that is recieved by the client?
>
> 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