Welcome Guest, Not a member yet? Register   Sign In
force_download does not work in controller
#1

(This post was last modified: 03-30-2016, 03:13 PM by cupboy.)

I can get this to work in a view but not in a controller. Why would that be?

For some odd reason someone posted something on another site (daniweb) where a poster claims to use it in a controller. Sure would like to see his code.
Reply
#2

Yes you can use it on a controller... In fact that's exactly where it should happen: https://codeigniter.com/user_guide/helpe...e_download

Remember to set that before any output is being done.
Best regards,
José Postiga
Senior Backend Developer
Reply




Theme © iAndrew 2016 - Forum software by © MyBB