public function sendDokumentMails($docID) { $d = $this->dokument->find($docID); $lidi = $this->uzivatel->findBy(array('chceMaily' => 1, 'smazan' => 0)); $link = $this->link('//Dokumenty:download', $d->id); //$mailer = new Model\DruzstvoMailer(); return $this->druzstvoMailer->sendDokument($d, $lidi, $link); }
public function renderDefault() { if (!$this->user->loggedIn) { $this->flashMessage('Tato sekce je pouze pro registrované. Pro pokračování se přihlašte, prosím.'); $this->redirect('Sign:in'); } $this->template->osoby = $this->uzivatel->findBy(array('smazan' => 0))->order("jmeno ASC"); $this->template->transformer = $this->t; }