예제 #1
0
 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');
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 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);
     }
 }
예제 #4
0
 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';
 }
예제 #5
0
 public function startUp()
 {
     parent::startUp();
     $this->layout = 'layout.twig';
     $this->template['title'] = "CLH";
 }