Welcome Guest, Not a member yet? Register   Sign In
Cannot modify header information - headers already sent by
#2

[eluser]CroNiX[/eluser]
Very common problem. Don't echo from a controller. It gets sent before CI's buffered output gets sent, so the headers aren't present before the output.

Views are the place for that (output). Loading a view dumps the view into CI's buffer. Then when your controller is done processing, CI outputs the buffer.


Messages In This Thread
Cannot modify header information - headers already sent by - by El Forum - 11-09-2012, 08:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB