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

[eluser]Farid[/eluser]
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.
#2

[eluser]Vheissu[/eluser]
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
#3

[eluser]Farid[/eluser]
i used like this

redirect("blocks","refresh");

but it didn't worked




Theme © iAndrew 2016 - Forum software by © MyBB