public function getMosMapDataAction() { $year = $this->_request->getParam('year', ''); $month = $this->_request->getParam('month', ''); $province = $this->_request->getParam('province', ''); $district = $this->_request->getParam('district', ''); $product = $this->_request->getParam('product', ''); $level = $this->_request->getParam('level', ''); $type = $this->_request->getParam('type', ''); $geoModel = new Model_Geo(); if ($type == 4) { $result = $geoModel->getDistrictMos($year, $month, $province, $product, $level); } else { $result = $geoModel->getTehsilMos($year, $month, $province, $district, $product); } echo Zend_Json::encode($result); }