set_header() file download problem |
It isn't a bug, you call exit() after you define the headers, but CodeIgniter doesn't set the headers and not send back anything to the browser until everything in the controller's action is executed... You shouldn't use exit() and it will work!
+1 To set the content type, you can use the set_content_type() method. ++1 CodeIgniter has a download helper http://www.codeigniter.com/user_guide/he...elper.html |
Messages In This Thread |
set_header() file download problem - by Rashid - 12-29-2015, 02:38 AM
RE: set_header() file download problem - by orionstar - 12-29-2015, 03:21 AM
RE: set_header() file download problem - by Rashid - 12-29-2015, 06:37 AM
RE: set_header() file download problem - by Rashid - 12-29-2015, 06:50 AM
RE: set_header() file download problem - by includebeer - 12-29-2015, 09:22 AM
|