Exemple #1
0
 public function detailsAction()
 {
     $group = $this->getRequest()->getParam("group");
     $GroupName = NewGroup::getById($group);
     $id = $this->getRequest()->getParam("id");
     $this->view->Details = News::getById($id);
     $this->view->Deffirent = News::getByGroupId($group);
     $this->view->Title = $GroupName->name;
     $this->view->headTitle($this->view->Title);
 }
 /**
  * Delete a Country
  */
 public function deleteAction()
 {
     $Content = NewGroup::getById($this->getRequest()->getParam('id'));
     if ($Content) {
         if ($this->getRequest()->isPost()) {
             $Content->delete();
             $this->Member->log('Nhóm tin: ' . $Content->name . '(' . $this->getRequest()->getParam('id') . ')', 'Xóa');
             My_Plugin_Libs::setSplash('Nhóm tin: <b>' . $Content->name . '</b> đã được xóa khỏi hệ thống.');
             $this->_redirect($this->_helper->url('index', 'newgroup', 'admin'));
         }
         $this->view->Newgroup = $Content;
     }
 }