public function createAction() { $this->setViewChange('form_pages'); if ($this->getRequest()->isPost()) { Model_Currency::createCurrency($this->getRequest()->getParams()); $this->session->set('successfu_edite', true); $this->redirect($this->getRequest()->getBaseUrl() . $this->getRequest()->getModule() . '/currency/'); } $this->getPageForm(); }
public function createAction() { if (!WM_Users::allow('create', $this->getRequest()->getController())) { $this->forward('error', 'noPermission'); } $this->setViewChange('form_pages'); if ($this->getRequest()->isPost()) { Model_Currency::createCurrency($this->getRequest()->getParams()); $this->session->set('successfu_edite', true); $this->redirect($this->getRequest()->getBaseUrl() . $this->getRequest()->getModule() . '/currency/'); } $this->getPageForm(); }