Пример #1
0
 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");
     }
 }
Пример #3
0
 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();
 }
Пример #4
0
 protected function startup()
 {
     parent::startup();
     $this->horninaRepository = $this->context->horninaRepository;
     $this->horninaObrazokRepository = $this->context->horninaObrazokRepository;
 }