public function deleteAction() { $Product = Setions::getById($this->getRequest()->getParam('id')); if ($Product) { if ($this->getRequest()->isPost()) { $Product->delete(); $this->Member->log('Setions: ' . $Product->name . '(' . $this->getRequest()->getParam('id') . ')', 'Xóa'); My_Plugin_Libs::setSplash('Delete: <b>' . $Product->name . '</b> have been completed.'); $this->_redirect($this->_helper->url('index', 'setions', 'admin')); } $this->view->Setions = $Product; } }