function deleteAction() { $cGuid = $this->_getParam('guid') ? $this->_getParam('guid') : ''; $hol = new Pandamp_Core_Hol_Calendar(); try { $hol->delete($cGuid); $response['success'] = true; $response['message'] = 'Event Deletion Success'; } catch (Exception $e) { $response['success'] = false; $response['error'] = $e->getMessage(); } echo Zend_Json::encode($response); }