Message: Cannot modify header information - headers already sent by (output started a |
This error show up when add line input in view and controller like this
http://prntscr.com/dz1ah8 http://prntscr.com/dz1a8a and the result is http://prntscr.com/dz1axv please help me, i don't know how to solve it. i searched in stackoverflow, but there is no whitespace or etc
I think the problem is in the aspirasi_model->tambah. Does exist the uid_aspirasi in the database and in the model?
If you get an 'headers already send' error then there [strong]always[/strong] is some output already send to the browser before you are trying to send another header command.
Most common mistake is that you use closing php tag at the end of a file and mistakenly add a line line or space after it. Thats why closing php tags at the end of a file are bad practice.
|
Welcome Guest, Not a member yet? Register Sign In |