Welcome Guest, Not a member yet? Register   Sign In
Redirection problem in codeigniter
#1

[eluser]Unknown[/eluser]
Hi,


When i add/edit/delete a record,records are added/updated/deleted but the page cannot be redirect to the home page.

I am using the code is

"redirect('emm/index');"
and
"redirect('emm/index','refresh');"

Both the codes was not working in the production server.

But these codes are working fine in my local server.

If any one knows the solution.Let me know.

#2

[eluser]Mauricio de Abreu Antunes[/eluser]
Try to echo something before this redirect.
Like:
Code:
echo 'Test'; exit;
redirect('page', refresh);

When your redirect a page that is in the same controller, you can call the controller.
Like:
Code:
$this->index();




Theme © iAndrew 2016 - Forum software by © MyBB