codeigniter update returns blank page while update is done

May 20, 2013 in answer

0 votes, 0.00 avg. rating (0% score)

ANSWER:

The problem is probably in your redirect statement:

redirect('http://localhost/prac', 'refresh');

The CI redirect helper will build your URI correctly if you set your base URL in your configuration file to the correct directory on your localhost.

I would expect to see something like:

redirect('controller/method', 'refresh');

with the appropriate name of your controller and method for the page you want to redirect to.

See: http://ellislab.com/codeigniter/user-guide/helpers/url_helper.html

Marc Audet from http://stackoverflow.com/questions/16658825