Esempio n. 1
0
 public function update($id)
 {
     $data = array('email' => $this->input->post('email'), 'password' => $this->input->post('pass'));
     //form update data
     $update_data = $this->{$this->model}->get_by(array('fields' => 'id,email,password,status', 'refer' => $id));
     $view_data = array(array('var_name' => 'form_data', 'value' => $update_data));
     parent::_update(array('refer' => $id, 'data' => $data, 'view_data' => $view_data));
 }