function handleAddPoll(NForm $form) { $values = $form->getValues(); $id_poll = PollModel::add($values); $this->flashMessage('Anketa bola pridaná'); $this->redirect('Poll:edit', array('id' => $id_poll)); }