Welcome Guest, Not a member yet? Register   Sign In
Redirection conditions,..
#1

[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 ?
#2

[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');




Theme © iAndrew 2016 - Forum software by © MyBB