![]() |
redirect error - 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: redirect error (/showthread.php?tid=30293) Pages:
1
2
|
redirect error - El Forum - 05-10-2010 [eluser]valuk[/eluser] Hi, guys I made controller Code: <?php And I also use .htaccess file Code: <IfModule mod_rewrite.c> If I try to run test/index I get an error: A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at D:\janez home\work\web site\racuni\app\controllers\test.php:1) Filename: helpers/url_helper.php Line Number: 541 Any idea? Thanx redirect error - El Forum - 05-10-2010 [eluser]Ivar89[/eluser] As far as I know you can remove the test/ Code: <?php ![]() redirect error - El Forum - 05-10-2010 [eluser]John_Betong[/eluser] Try this: Code: function add() redirect error - El Forum - 05-10-2010 [eluser]valuk[/eluser] Still showing same error. I forgot to mention that I loaded url helper. redirect error - El Forum - 05-10-2010 [eluser]John_Betong[/eluser] From te user manual: Code: if ($logged_in == FALSE) Try prefixing your test with /test/add redirect error - El Forum - 05-10-2010 [eluser]mddd[/eluser] If there is anything before the <?php tag at the beginning of the script, redirect will not work. Check to make sure there are no hidden characters before the <?php tag and you are not outputting anything anywhere else in your scripts. redirect error - El Forum - 05-10-2010 [eluser]danmontgomery[/eluser] [quote author="mddd" date="1273526187"]If there is anything before the <?php tag at the beginning of the script, redirect will not work. Check to make sure there are no hidden characters before the <?php tag and you are not outputting anything anywhere else in your scripts.[/quote] This also goes for text after closing php tags at the end of files. You can just remove these to be safe. redirect error - El Forum - 05-11-2010 [eluser]cahva[/eluser] Also check that the file is not UTF-8 with BOM(byte order mark). This is probably the problem. redirect error - El Forum - 05-12-2010 [eluser]valuk[/eluser] I still have the problem. I've notice that error occurs if I load model in constructor $this->load->model('bla'). redirect error - El Forum - 05-12-2010 [eluser]Ivar89[/eluser] could you like paste the view here?? might help... |