Exemplo n.º 1
0
 public function get_bank_id($KD_BANK)
 {
     $sql = "SELECT * FROM " . $this->_table . " WHERE KD_BANK = " . $KD_BANK . " ";
     $result = $this->_db->select($sql);
     //        var_dump($result);
     $data = array();
     foreach ($result as $value) {
         $bank = new Bank($registry);
         $bank->set_id($value['KD_BANK']);
         $bank->set_nama($value['NM_BANK']);
         $bank->set_keterangan($value['KET_BANK']);
         $data = $bank;
     }
     return $data;
 }
Exemplo n.º 2
0
 public function deleteBank($id)
 {
     $bank = new Bank($this->registry);
     $bank->set_id($id);
     $bank->deleteBank();
     header('location:' . URL . 'admin/list_bank');
 }