Example #1
0
 function update()
 {
     $salary = new Salary();
     $salary->where('salary_id', $this->input->post('id'))->update(array('salary_periode' => $this->input->post('salary_periode'), 'salary_staffid' => $this->input->post('salary_staffid')));
     $this->session->set_flashdata('message', 'salary Update successfuly.');
     redirect('salaries/');
 }