CodeIgniter Forums
im header already sent problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: im header already sent problem (/thread-26631.html)



im header already sent problem - El Forum - 01-19-2010

[eluser]sasori[/eluser]
is there a way to get rid of this error ?
Code:
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\myapp\system\application\models\stock_model.php:2)

Filename: codeigniter/Common.php

Line Number: 360



im header already sent problem - El Forum - 01-19-2010

[eluser]n0xie[/eluser]
You output something in your stock_model. Remove it and the error goes away.


im header already sent problem - El Forum - 01-19-2010

[eluser]hendrawan[/eluser]
i think that is becouse you already have
Code:
echo
on your code
header doesnt allow another output such as
Code:
echo, print, etc
in it's script