public function startUp() { parent::startUp(); $this->template['resRend'] = \model\ReservationRenderer::getInstance(); $this->addJs('moment-with-locales-min.js'); $this->addJs('bootstrap-datetimepicker.js'); $this->addCss('bootstrap-datetimepicker.min.css'); }
public function startUp() { parent::startUp(); if (!$this->user->isSupervisor()) { $this->message->warning("Do sekce Správa nemáte přístup", \libs\MessageBuffer::LVL_WAR); $this->redirectPars(Controller::DEFAULT_CONTROLLER); } }
public function startUp() { parent::startUp(); if (!$this->user->isLoggedIn()) { $action = $this->urlGen->getAction(); $check = strtolower(substr($action, 0, 7)); if ($check == 'prihlas') { return; } $this->message->info("Do uživatelské sekce mají přístup jen přihlášení uživatelé."); $this->redirectPars(Controller::DEFAULT_CONTROLLER); } }
public function startUp() { parent::startUp(); if (!$this->user->isLoggedIn()) { $this->message->warning('Pro psaní ohlasů musíte být přihlášeni.'); $this->redirectPars(); } if (!Config::FEEDBACK_ENABLED) { $this->message->info('Ohlasy zpětné vazby nejsou v tento moment povoleny'); $this->redirectPars(); } $this->template['pageTitle'] = 'Zpětná vazba'; }
public function startUp() { parent::startUp(); $this->layout = 'layout.twig'; $this->template['title'] = "CLH"; }