Example #1
0
 public function createAction()
 {
     $this->view->Title = "Tạo mới nhóm thành viên";
     $this->view->headTitle($this->view->Title);
     if ($this->getRequest()->isPost()) {
         $Group = new Groups();
         $Role = $this->getRequest()->getParam('Role');
         $Group->merge($_POST);
         $Group->role = Zend_Json::encode($Role);
         $Group->save();
         $this->Member->log('Tạo nhóm thành viên: ' . $Group->name . ' (' . $Group->id . ')', 'Groups');
         My_Plugin_Libs::setSplash('Nhóm thành viên:<b>' . $Group->name . '</b> đã được tạo.');
         $this->_redirect($this->_helper->url('index', 'Group'));
     }
     $Resources = new Zend_Config_Xml(APPLICATION_PATH . '/configs/resources.xml', 'admin');
     $this->view->Resources = $Resources;
 }
Example #2
0
 public function createAction()
 {
     $this->view->Title = "Management member group";
     $this->view->headTitle($this->view->Title);
     if ($this->getRequest()->isPost()) {
         $Group = new Groups();
         $Role = $this->getRequest()->getParam('Role');
         $Group->merge($_POST);
         $Group->role = Zend_Json::encode($Role);
         $Group->save();
         $this->Member->log('Member group: ' . $Group->name . ' (' . $Group->id . ')', 'Create');
         My_Plugin_Libs::setSplash('Create:<b>' . $Group->name . '</b> have been completed.');
         $this->_redirect($this->_helper->url('index', 'Group'));
     }
     $Resources = new Zend_Config_Xml(APPLICATION_PATH . '/configs/resources.xml', 'admin');
     $this->view->Resources = $Resources;
 }