request->getGet('kanwil'); $param = array( 'kanwil' => $kanwil ); $data_kpp = $general->get_ref_kpp($param); echo json_encode($data_kpp); } } public function get_ref_ar() { if (session('isLogin')) { $general = new MGeneral(); $kpp = $this->request->getGet('kpp'); $seksi = $this->request->getGet('seksi'); $param = array( 'kpp' => $kpp, 'seksi' => $seksi ); $data_kpp = $general->get_ref_ar($param); echo json_encode($data_kpp); } } public function get_ref_kabkot() { if (session('isLogin')) { $general = new MGeneral(); $kpp = $this->request->getGet('kpp'); $param = array( 'kpp' => $kpp ); $data_kpp = $general->get_ref_kabkot($param); echo json_encode($data_kpp); } } }