Redirection conditions,.. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Redirection conditions,.. (/showthread.php?tid=19516) |
Redirection conditions,.. - El Forum - 06-10-2009 [eluser]quest13[/eluser] Can anyone tell me about conditions to be followed while redirecting ? Because, I face a problem like this, I am deleting a record by passing a variable to the method in the controller and after succeeding in deleting, when I try to redirect to the method where the records have been paginated, it doesn't seem to 'refresh' or 'unset', it takes the same row along and displaying error. How do I unset or refresh the data and redirect to some other method in the controller ? function Delprop($propid){ $this->Addproperty_model->GetDeldata($propid); $this->index(); } The Error message is :Fatal error: Call to a member function result_array() on a non-object in C:\Documents and Settings\Administrator\workspace\xxxxxxxxxxx\xxxxxxxxxx\system\application\views\manageproperties_view.php on line 31 It is resulting in this error as I am not able to redirect afresh, I suppose. Any solution ? Redirection conditions,.. - El Forum - 06-10-2009 [eluser]jegbagus[/eluser] what is your case? want to redirected page ? if you want to redirected page, just load url helper $this->load->helper('url') than redirect it use redirect('controller/function'); |