Esempio n. 1
0
 protected function startup()
 {
     parent::startup();
     if (!$this->user->isLoggedIn()) {
         $backlink2 = $this->getSession('backlink2');
         $backlink2->backlink = $this->storeRequest();
         $this->redirect('Login:'******'odeslaniMailu');
     $this->prava = $this->getService('prava');
     $this->prava->setId_osoby($this->getUser()->id);
     dd($this->modul, 'modul');
     if ($this->modul) {
         if (!$this->prava->prava($this->modul)) {
             //                $this->redirect('Homepage:');
             $this->setView('../NepovolenyPristup');
             $this->renderNepovolenyPristup();
             //                $this->template->render();
         } else {
             $this->pristup = TRUE;
         }
         if (!($this->admin = $this->prava->prava($this->modul, 0))) {
             $this->admin = 0;
         }
     }
     dd($this->pristup, 'pristup');
     $this->logger = $this->getService('logger');
     $this->logger->setId_uzivatele($this->getUser()->id);
 }
Esempio n. 2
0
 public function startup()
 {
     parent::startup();
     $this->items = new \Model\Localities($this->ns);
     $this->system = new \Model\System($this->ns);
     $this->pager = new \Pager($this, 'vp');
 }
Esempio n. 3
0
 protected function startup()
 {
     parent::startup();
     $this->system = new System($this->ns);
     $this->pager = new Pager($this, 'vp');
     $this->items = new SubjectsComments($this->ns);
     $this->template->title = $this->documentName;
 }
Esempio n. 4
0
 protected function startup()
 {
     parent::startup();
     $this->system = new \Model\System($this->ns);
     $this->pager = new \Pager($this, 'vp');
     $this->items = new \Model\Articles($this->ns);
     $this->template->title = $this->documentName;
 }
Esempio n. 5
0
 public function startup()
 {
     parent::startup();
     $this->files = new \Model\Filesystem($this->ns);
     $this->gallery = new Galleries($this->ns);
     $this->system = new \Model\System($this->ns);
     $this->pager = new \Pager($this, 'vp');
     $this->template->backlink = $this->getApplication()->storeRequest();
 }
Esempio n. 6
0
 public function startup()
 {
     parent::startup();
     $this->system = new System($this->ns);
     $this->pager = new Pager($this, 'vp');
     $this->items = new Filesystem($this->ns);
     $params = $this->getRequest()->getParameters();
     if (isset($params['backlink'])) {
         $this['form']['backlink']->setValue($params['backlink']);
     }
 }
Esempio n. 7
0
 public function startup()
 {
     parent::startup();
     $this->system = new System($this->ns);
     $this->pager = new Pager($this, 'vp');
     $this->items = new \Model\Newsletter($this->ns);
     $params = $this->presenter->getParameter();
     if (isset($params['backlink'])) {
         $this['form']['backlink']->setValue($params['backlink']);
     }
 }
Esempio n. 8
0
 public function startup()
 {
     parent::startup();
     if (!$this->user->isAllowed('users')) {
         $this->flashMessage('You are not allowed to view this page', 'error');
         $this->redirect('Default:default');
     }
     $this->items = new \Accounts($this->ns);
     $this->system = new \Model\System($this->ns);
     $this->pager = new \Pager($this, 'vp');
     $this->template->title = $this->documentName;
 }
Esempio n. 9
0
 /**
  * (non-phpDoc)
  *
  * @see Nette\Application\Presenter#startup()
  */
 protected function startup()
 {
     parent::startup();
     $this->items = $this->context->createServiceCompetitions()->order($this->order);
 }
Esempio n. 10
0
 protected function startup()
 {
     parent::startup();
 }
Esempio n. 11
0
 /**
  * (non-phpDoc)
  *
  * @see Nette\Application\Presenter#startup()
  */
 protected function startup()
 {
     parent::startup();
     $this->items = $this->context->createServiceCircles();
 }
Esempio n. 12
0
 protected function startup()
 {
     parent::startup();
     $this->logger = $this->getService('logger');
     $this->getUser()->logout(TRUE);
 }