コード例 #1
0
 public function getExpiryAlertAction()
 {
     $province = $this->_request->getParam('province', '');
     $product = $this->_request->getParam('product', '');
     $district = $this->_request->getParam('district', '');
     $level = $this->_request->getParam('level', '');
     $geoModel = new Model_Geo();
     if ($level == 4) {
         $return = $geoModel->getExpiryDistrict($province, $product);
     } else {
         $return = $geoModel->getExpiryTehsil($province, $district, $product);
     }
     echo Zend_Json::encode($return);
 }