public function createAction() { $this->setViewChange('form'); if ($this->getRequest()->isPost()) { $res = Model_Tags::createTag($this->getRequest()->getParams()); if ($res == -1) { $this->session->set('tag_exists', true); } else { $this->session->set('successfu_edite', true); } $url = ''; if ($this->getRequest()->getQuery('page')) { $url = '?page=' . $this->getRequest()->getQuery('page'); } $this->redirect($this->getRequest()->getBaseUrl() . $this->getRequest()->getModule() . '/tags/' . $url); } $this->getForm(); }