コード例 #1
0
 public function landusecodesAction()
 {
     if ($this->_getParam('term', false)) {
         $landcodes = new Landuses();
         $response = $landcodes->getLandusesChildAjax2($this->_getParam('term'));
     } else {
         $response = array('id' => NULL, 'term' => 'No Landuse specified');
     }
     echo Zend_Json::encode($response);
 }
コード例 #2
0
 /** Get the landuse codes
  * @access public
  */
 public function landusecodesAction()
 {
     if ($this->getParam('term', false)) {
         $landcodes = new Landuses();
         $json = $landcodes->getLandusesChildAjax2($this->getParam('term'));
     } else {
         $json = array(null => 'You must choose a landuse first');
     }
     echo Zend_Json::encode($json);
 }