function handleAddEmail(NForm $form) { $values = $form->getValues(); NewsletterModel::addEmails($values['emails']); $this->invalidateControl('newsletterTabella'); $this->invalidateControl('addForm'); $this->flashMessage('Email bol úspešne pridaný'); $this->redirect('this'); }