public function startup() { parent::startup(); if ($this->getUser()->isLoggedIn()) { $this->flashMessage("Přihlášený uživatel si nemůže vytvořit další účet.", "alert-danger"); $this->redirect("Homepage:default"); } }
public function startup() { parent::startup(); if ($this->getUser()->isLoggedIn()) { $this->flashMessage("Přihlášený uživatel si nemůže požádat o zapomenuté heslo.", "alert-danger"); $this->redirect("Homepage:default"); } }
protected function beforeRender() { parent::beforeRender(); $this->template->parameters = $this->context->parameters; $this->template->acl = $this->acl; $this->template->addFilter('langName', function ($locale) { return Intl::getLocaleBundle()->getLocaleName($locale); }); $this->template->projects = $this->projectFacade->findAll(); }
protected function startup() { parent::startup(); $this->horninaRepository = $this->context->horninaRepository; $this->horninaObrazokRepository = $this->context->horninaObrazokRepository; }