diff --git a/app/Controllers/Admin/KelasController.php b/app/Controllers/Admin/KelasController.php index c0cbf14..52740dd 100644 --- a/app/Controllers/Admin/KelasController.php +++ b/app/Controllers/Admin/KelasController.php @@ -81,7 +81,7 @@ public function create() 'kelas' => [ 'rules' => 'required|max_length[32]', ], - 'idJurusan' => [ + 'id_jurusan' => [ 'rules' => 'required|numeric', ], ])) { @@ -99,7 +99,7 @@ public function create() // ambil variabel POST $kelas = $this->request->getVar('kelas'); - $idJurusan = $this->request->getVar('idJurusan'); + $idJurusan = $this->request->getVar('id_jurusan'); $result = $this->kelasModel->tambahKelas($kelas, $idJurusan); @@ -153,7 +153,7 @@ public function update($id = null) 'kelas' => [ 'rules' => 'required|max_length[32]', ], - 'idJurusan' => [ + 'id_jurusan' => [ 'rules' => 'required|numeric', ], ])) { @@ -178,7 +178,7 @@ public function update($id = null) // ambil variabel POST $kelas = $this->request->getRawInputVar('kelas'); - $idJurusan = $this->request->getRawInputVar('idJurusan'); + $idJurusan = $this->request->getRawInputVar('id_jurusan'); $result = $this->kelasModel->update($id, [ 'kelas' => $kelas, diff --git a/app/Views/admin/kelas/create.php b/app/Views/admin/kelas/create.php index 91a32a6..5f39294 100644 --- a/app/Views/admin/kelas/create.php +++ b/app/Views/admin/kelas/create.php @@ -34,17 +34,17 @@