This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Export files???

This is for discussion, mainly on 1.x but there's some 2.x topics here too.

Export files???

by dashiell » Wed May 18, 2011 3:34 pm

Hello my friends a looking for a lot of help, i need to export the result of a search in my site, i need to export this information in any document extension (.doc, .pdf. xls or excel)if anyone could help me any answer will be well receive i work whit doctrine :thumbup:
Junior Member
Posts: 1
Joined: Wed May 18, 2011 3:28 pm

Re: Export files???

by halfer » Wed Jun 29, 2011 10:57 am

You could have a special page that renders search results as a CSV file? Simply render the CSV file (strings in quotes, everything comma separated) in your template and then send a CSV header inside the action ($this->getResponse()->setHeader('xxx', 'yyy') - obviously you'll have to look up that bit!).
Faithful Member
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK