public function getUcWiseMosAction() { $year = $this->_request->getParam('year', ''); $month = $this->_request->getParam('month', ''); $product = $this->_request->getParam('product', ''); $tehsilId = $this->_request->getParam('tehsilId', ''); $param = $this->_request->getParam('param', ''); $type = $this->_request->getParam('type', ''); $geoModel = new Model_Geo(); if ($param == 'mos') { $return = $geoModel->getUcWiseMos($year, $month, $product, $tehsilId); } else { $return = $geoModel->getUcWiseConsumption($year, $month, $product, $tehsilId, $type); } echo Zend_Json::encode($return); }