Exemple #1
0
 public function update($id)
 {
     $model = new \Model\Data(array('id' => $id));
     $model->nama = $this->request->post('nama');
     $model->email = $this->request->post('email');
     $sql = $model->save();
     mysqli_query($this->dbcon, $sql);
     $this->url->redirect('index.php/data');
 }