Пример #1
0
 public function searchForGroupFormSubmitted(Form $form)
 {
     $query = $form->getValues();
     $this->groupsOutput = $this->groupModel->findAllByName($query->name);
     $this->searchInput = $query->name;
     $this->template->groupsOutput = $this->groupsOutput == null;
 }
Пример #2
0
 public function addGroupFormSubmitted(Form $form)
 {
     $query = $form->getValues();
     $this->groupModel->addGroup($query);
     $this->flashMessage('Pridal si skupinu s názvom ' . $query->name . '.');
     $this->redirect('Group:list');
 }