public function deleteConfigAction() { $configId = $this->_getParam('id'); $guid = $this->_getParam('guid'); $model1 = new Security_Model_SysConfig(); $model = $model1->fetchRow("config_id='{$configId}' and row_guid='{$guid}'"); if (false === $model) { $this->_flashMessenger->addMessage(array('error' => 'Invalid request! Please try again.')); $this->_helper->_redirector->gotoUrl($this->view->seoUrl('/security/sys-config/index')); } if ($model->deleteConfig($configId)) { $this->_flashMessenger->addMessage(array('success' => 'Data Deleted succesfully')); $this->_helper->_redirector->gotoUrl($this->view->seoUrl('/security/sys-config/index')); } else { $this->_flashMessenger->addMessage(array('error' => 'Failed to Delete the data ')); $this->_helper->_redirector->gotoUrl($this->view->seoUrl('/security/sys-config/index')); } }