$crud->callback_before_update(array($this,'id_callback'));
$crud->callback_before_update(array($this,'name_callback'));
$crud->callback_before_update(array($this,'phone_callback'));
$crud->callback_before_insert(array($this,'name_callback'));
$crud->callback_before_insert(array($this,'id_callback'));
$crud->callback_before_insert(array($this,'phone_callback'));
function id_callback($post_array)
{
$post_array["rid"]= $this->session->userdata('id');
return $post_array;
}
function name_callback($post_array)
{
$post_array['rname']= $this->session->userdata('name');
return $post_array;
}
function phone_callback($post_array)
{
$post_array['phone_number']= $this->session->userdata('phone');
return $post_array;
}
function example_output($output = null)
{
$this->load->view('report_missing.php',$output);
}
this only calls back only 'phone_callback'...any help please.Am stuck with my project.