File helper() write file? Download prompt! |
[eluser]brucebat[/eluser]
Hi all, I have been playing around with the file helper class. Basically I want a query result in a csv file to be downloaded by the user, NOT written to a folder somewhere. So this is what happens: -Enters query (works) -Query result in CSV (works) -Query result in file, download prompt for user to download .csv file (not functioning) This is what I have Code: //csv data I had a look at the File Helper but no code relevant to what I am trying to achieve. Thanks for your time
[eluser]bubbafoley[/eluser]
use the download helper Code: $this->load->helper('download'); http://ellislab.com/codeigniter/user-gui...elper.html
[eluser]brucebat[/eluser]
Thanks bubbofoley this was what I wanted to hear ! |
Welcome Guest, Not a member yet? Register Sign In |