public function beforeRender() { parent::beforeRender(); $this->template->editingUser = $this->editedUser != NULL; if ($this->isAjax()) { $this->invalidateControl('userContent'); } }
public function run(\Nette\Application\Request $request) { $response = parent::run($request); // dump($this->payload); //v této chvíli už by payload měl být naplněn snippety a můžeš si s ním dělat co chceš return $response; }
protected function startup() { parent::startup(); reset($this->pages); $this->redirect('Item:default', key($this->pages)); }
protected function startup() { parent::startup(); $this->userRepository = $this->context->userRepository; }
public function beforeRender() { parent::beforeRender(); /** list of available filters for select */ $this->template->filters = $this->filters; $this->template->filter = $this->filter; }
public function beforeRender() { parent::beforeRender(); //$this->template->cssVariables = $this->cssVariables; $this->template->allCssVariables = $this->allCssVariables; }