getUser()->isLoggedIn()) { $this->flashMessage('Pro tuto agendu se přihlaste.'); $this->redirect(':Sign:in', ['backlink' => $this->storeRequest()]); } } public function beforeRender(): void { $this->template->appVersion = Konstanty::verze; } }