CodeIgniter Forums
autoloading or loading session class and url helper - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: autoloading or loading session class and url helper (/showthread.php?tid=23096)



autoloading or loading session class and url helper - El Forum - 09-30-2009

[eluser]midooh[/eluser]
I"m new to CodeIgniter everytime I autoload or load session class and url helper They doesnt work I get the message

A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by

Filename: libraries/Session.php

Line Number: 662

and

A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by

Filename: helpers/url_helper.php

Line Number: 539


Every time I try the redirect example it doesnt work
can u help me with it plz


autoloading or loading session class and url helper - El Forum - 09-30-2009

[eluser]onecode[/eluser]
i think i have a solution, open your index.php in the root...before calling require_once, line 116 use ob_start() and in the line 118 use ob_end_flush()..i use this trick and my apps doesn't error anymore with session and url (redirect)... Smile


autoloading or loading session class and url helper - El Forum - 09-30-2009

[eluser]midooh[/eluser]
:-) work fine!
thank u


autoloading or loading session class and url helper - El Forum - 09-30-2009

[eluser]n0xie[/eluser]
[quote author="onecode" date="1254329840"]i think i have a solution, open your index.php in the root...before calling require_once, line 116 use ob_start() and in the line 118 use ob_end_flush()..i use this trick and my apps doesn't error anymore with session and url (redirect)... Smile[/quote]
That's not really a trick nor a solution... :blank:


autoloading or loading session class and url helper - El Forum - 09-30-2009

[eluser]onecode[/eluser]
[quote author="n0xie" date="1254335917"][quote author="onecode" date="1254329840"]i think i have a solution, open your index.php in the root...before calling require_once, line 116 use ob_start() and in the line 118 use ob_end_flush()..i use this trick and my apps doesn't error anymore with session and url (redirect)... Smile[/quote]
That's not really a trick nor a solution... :blank:[/quote]

ups... :red:


autoloading or loading session class and url helper - El Forum - 09-30-2009

[eluser]midooh[/eluser]
It's not a trick but its a solution it works real good!