Exemple #1
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');
 }
Exemple #2
0
 public function beforeRender()
 {
     parent::beforeRender();
     $this->template->admin = $this->admin;
     if (isset($this->opravneni)) {
         $this->template->opravneni = $this->opravneni;
     }
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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();
 }
Exemple #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']);
     }
 }
Exemple #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']);
     }
 }
Exemple #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;
 }
 /**
  * (non-phpDoc)
  *
  * @see Nette\Application\Presenter#startup()
  */
 protected function startup()
 {
     parent::startup();
     $this->items = $this->context->createServiceCompetitions()->order($this->order);
 }
Exemple #10
0
 protected function startup()
 {
     parent::startup();
 }
Exemple #11
0
 /**
  * (non-phpDoc)
  *
  * @see Nette\Application\Presenter#startup()
  */
 protected function startup()
 {
     parent::startup();
     $this->items = $this->context->createServiceCircles();
 }
Exemple #12
0
 protected function startup()
 {
     parent::startup();
     $this->logger = $this->getService('logger');
     $this->getUser()->logout(TRUE);
 }