public function deleteLogAction() { $id = $this->_getParam('id'); $usersNs = new Zend_Session_Namespace("members"); $this->view->config_id = $id; $model1 = new Application_Model_Log(); $model = $model1->find($id); if (false === $model) { $this->_flashMessenger->addMessage(array('error' => 'Invalid request! Please try again.')); $this->_helper->_redirector->gotoUrl($this->view->seoUrl('/admin/log')); } if ($model->delete("config_id={$id}")) { $this->_flashMessenger->addMessage(array('success' => 'Data Deleted succesfully')); $this->_helper->_redirector->gotoUrl($this->view->seoUrl('/admin/log/')); } else { $this->_flashMessenger->addMessage(array('error' => 'Failed to Delete the data ')); $this->_helper->_redirector->gotoUrl($this->view->seoUrl('/admin/log')); } }
public function configInfoAction() { $this->view->layout()->disableLayout(); $configId = $this->_getParam("config_id"); $model = new Application_Model_Log(); $config = $model->find($configId); if (false === $config) { exit("Records not found for config id : {$configId}!"); } $this->view->config = $config; }