/** Get the mints in json format * @access public */ public function getmintsAction() { if ($this->getParam('term', false)) { $mints = new Mints(); $data = $mints->getMintbyBroadperiod($this->getParam('term')); if (empty($data)) { $data = array(array('id' => null, 'term' => 'No Options')); } } else { $data = array(null => 'You must choose a broad period first'); } echo Zend_Json::encode($data); }