![]() |
shows previous records after delete on page - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: shows previous records after delete on page (/showthread.php?tid=44120) |
shows previous records after delete on page - El Forum - 08-04-2011 [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. shows previous records after delete on page - El Forum - 08-04-2011 [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-guide/helpers/url_helper.html shows previous records after delete on page - El Forum - 08-04-2011 [eluser]Farid[/eluser] i used like this redirect("blocks","refresh"); but it didn't worked |