public function getNonCcmLocationsAction() { $wh_id = $this->_request->getParam('wh_id'); if ($wh_id) { $nonccm = new Model_ColdChain(); $result = $nonccm->getNonCCMLocations($wh_id); } echo Zend_Json::encode($result); }