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); }
/** 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); }