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() . '/boards/'); } $this->setViewChange('form'); if ($this->getRequest()->isPost()) { Model_Boards::edit($this->getRequest()->getQuery('id'), $this->getRequest()->getParams()); $this->session->set('successfu_edite', true); $this->redirect($this->getRequest()->getBaseUrl() . $this->getRequest()->getModule() . '/boards/'); } $this->getForm(); }