Welcome Guest, Not a member yet? Register   Sign In
shows previous records after delete on page

i am listing my records in a page and have the delete link aside to each record, when i press the the link, it goes to specified controller's method and delete the record after that i set a flash message successful deletion and redirect to same page, but when it come back to page it loads previous data, and do not show flash message, but when i refresh the page it shows flash message as well as updated list of records.

why is this, please help me, i spent a lot of my time on it and got stuck.

Are you using the redirect function to reload the page? If so, supply the second argument to force it to refresh the page: http://ellislab.com/codeigniter/user-gui...elper.html

i used like this


but it didn't worked

Theme © iAndrew 2016 - Forum software by © MyBB