public function deleteConfigAction()
 {
     $id = $this->_getParam('id');
     $usersNs = new Zend_Session_Namespace("members");
     $this->view->dbcnf_id = $id;
     $model1 = new Security_Model_DatabaseConfig();
     $model = $model1->find($id);
     if (false === $model) {
         $this->_flashMessenger->addMessage(array('error' => 'Invalid request! Please try again.'));
         $this->_helper->_redirector->gotoUrl($this->view->seoUrl('/security/data-baseConfig/database-configs'));
     }
     if ($model->delete("dbcnf_id={$id}")) {
         $this->_flashMessenger->addMessage(array('success' => 'Data Deleted succesfully'));
         $this->_helper->_redirector->gotoUrl($this->view->seoUrl('/security/db-config/database-configs'));
     } else {
         $this->_flashMessenger->addMessage(array('error' => 'Failed to Delete the data '));
         $this->_helper->_redirector->gotoUrl($this->view->seoUrl('/security/db-config/database-configs'));
     }
 }
 private function setModel($row)
 {
     $model = new Security_Model_DatabaseConfig();
     $model->setDbcnfId($row->dbcnf_id)->setConfigId($row->config_id)->setDbServerName($row->db_server_name)->setDbServerPort($row->db_server_port)->setDbName($row->db_name)->setDbUser($row->db_user)->setDbPassword($row->db_password)->setDbTransType($row->db_trans_type)->setStatus($row->status)->setRowGuid($row->row_guid)->setCreatedBy($row->created_by)->setUpdatedBy($row->updated_by)->setRowVersion($row->row_version)->setRowMaxId($row->row_max_id);
     return $model;
 }