public function hapusPegawai($id) { $pegawai = new Pegawai($this->registry); $pegawai->remove($id); header('location:' . URL . 'referensi/pegawai'); }