![]() |
Header and redirect - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Header and redirect (/showthread.php?tid=14746) |
Header and redirect - El Forum - 01-13-2009 [eluser]finord[/eluser] Hello, I have a problem with a script, not because they will not let me redirect. I have done looking at the guide, and without output anything(only process something) in the redirect page. I've been looking at the forum, but I have not found anything that I can help Here is the Code: add.php Code: <? Im want to do: Link to ct->in ct, process key, and send it by url, and redirect->Output it in ct2 Plz, if someone else can help me. Thanks ^^ EDIT:I forgot the error: Code: A PHP Error was encountered In ulr_helper, Line Numer:485: Code: if ( ! function_exists('redirect')) Header and redirect - El Forum - 01-13-2009 [eluser]sophistry[/eluser] looks like your config/database.php file is emitting something... check that file for any echo, print, or print_r statements or that sort of thing. also make sure there is not any extra whitespace at the top of bottom of the file. Header and redirect - El Forum - 01-14-2009 [eluser]AndrewMalachel[/eluser] From what I see, you just want to call another controller function (within the same class) from other function, right? Rather than using the Redirect function, why don't you call the ct2 function directly from the ct function? so your code are changed to be something like: Code: function ct(){ //Second Step hope it helps... Header and redirect - El Forum - 01-14-2009 [eluser]finord[/eluser] Hello, sophistry was right, there were empty spaces in the config/database. And AndrewMalachel, I need to have the key in the url, so use redirect. Thanks to all ^^ |