request->getPost('kwl'); $model = new Mref(); $dataKPP = $model->selKpp($kwl)->getResult(); echo json_encode($dataKPP); } public function getSeksi() { $kpp = $this->request->getPost('kpp'); $model = new Mref(); $dataseksi = $model->selSeksi($kpp)->getResult(); echo json_encode($dataseksi); } public function getAR() { $kpp = $this->request->getPost('kpp'); $seksi = $this->request->getPost('seksi'); $model = new Mref(); $dataar = $model->selAR($kpp, $seksi)->getResult(); echo json_encode($dataar); } public function getKPP2() { $kwl = $this->request->getGet('kwl'); $model = new Mref(); $dataKPP = $model->selKpp($kwl)->getResult(); echo json_encode($dataKPP); } public function getAR2() { $kpp = $this->request->getGet('kpp'); $seksi = $this->request->getGet('seksi'); $model = new Mref(); $dataseksi = $model->selAR($kpp, $seksi)->getResult(); echo json_encode($dataseksi); } }