/** * Delete clinical notes template action */ public function deleteTemplateAction() { $clinicalNoteTemplateId = (int) $this->_getParam('clinicalNoteTemplateId'); $cnTemplate = new ClinicalNoteTemplate(); $cnTemplate->clinicalNoteTemplateId = $clinicalNoteTemplateId; $cnTemplate->setPersistMode(WebVista_Model_ORM::DELETE); $cnTemplate->persist(); $msg = __("Record deleted successfully"); $data = array(); $data['code'] = 200; $data['msg'] = $msg; $json = Zend_Controller_Action_HelperBroker::getStaticHelper('json'); $json->suppressExit = true; $json->direct($data); }