public function deleteBank($id) { $bank = new Bank($this->registry); $bank->set_id($id); $bank->deleteBank(); header('location:' . URL . 'admin/list_bank'); }