Export files???

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

Export files???

Postby 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:
dashiell
Junior Member
 
Posts: 1
Joined: Wed May 18, 2011 3:28 pm

Re: Export files???

Postby 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!).
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK


Return to General discussion

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron