コード例 #1
0
ファイル: LanguagesController.php プロジェクト: noikiy/PD
 public function editeAction()
 {
     $this->setViewChange('language_form');
     if ($this->getRequest()->isPost()) {
         Model_Language::editeLanguage($this->getRequest()->getQuery('id'), $this->getRequest()->getParams());
         $this->session->set('successfu_edite', true);
         $this->redirect($this->getRequest()->getBaseUrl() . $this->getRequest()->getModule() . '/languages/');
     }
     $this->getForm();
 }
コード例 #2
0
 public function editAction()
 {
     if (!WM_Users::allow('edit', $this->getRequest()->getController())) {
         $this->session->set('error_permision', $this->translate('You do not have permission to this action'));
         $this->redirect($this->getRequest()->getBaseUrl() . $this->getRequest()->getModule() . '/languages/');
     }
     $this->setViewChange('language_form');
     if ($this->getRequest()->isPost()) {
         Model_Language::editeLanguage($this->getRequest()->getQuery('id'), $this->getRequest()->getParams());
         $this->session->set('successfu_edite', true);
         $this->redirect($this->getRequest()->getBaseUrl() . $this->getRequest()->getModule() . '/languages/');
     }
     $this->getForm();
 }