public function addgroupAction() { $logic = new Logic_User(); $form = new Logic_User_Form_UserGroup(); if ($this->getRequest()->isPost()) { if ($form->isCancelled($this->getRequest()->getPost())) { $this->_helper->redirector('listgroups', 'user', null); return; } if ($form->isValid($this->getRequest()->getPost())) { try { $logic->createUserGroup($form); $cache = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('cachemanager')->getCache('rolecache'); $cache->clean(Zend_Cache::CLEANING_MODE_ALL); $this->_helper->redirector('listgroups'); // $this->_helper->messenger->success('Dodanie grupy czeka na akceptację.'); $this->_helper->messenger->success('Dodano grupę'); return; } catch (Logic_User_Exception $e) { $this->_helper->messenger->error($e->getMessage()); } } } $this->view->form = $form; }