Welcome Guest, Not a member yet? Register   Sign In
redirect doesn't work
#1

[eluser]Snipper[/eluser]
Hi all,

When I call redirect function as below, it does not work. Can u help on this.

redirect('controller_name/function_name','location');


It fires the following message.

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\iasl_application\application\libraries\template.php:58)

Filename: helpers/url_helper.php

Line Number: 543
#2

[eluser]darrentaytay[/eluser]
This means you have output some information before the redirect has happened. Do you have any print's or echo's before you attempt the redirect?
#3

[eluser]NeoArc[/eluser]
Remove extra whitespace at this line:
(output started at C:\xampp\htdocs\iasl_application\application\libraries\template.php:58
#4

[eluser]Snipper[/eluser]
Hi all,

Thanks for ur help. It was rectified.




Theme © iAndrew 2016 - Forum software by © MyBB