public function getColorClassesAction() { $id = $this->_request->getParam('id', ''); $geoModel = new Model_Geo(); $result = $geoModel->getColorClasses($id); echo Zend_Json::encode($result); }