public function renderDefault() { $this->template->badPath = FALSE; try { $this->template->avJars = $this->gameUpdater->getAvailableJars($this->path); $this->template->maxJars = $this->configModel['update']['number'] <= count($this->template->avJars); } catch (UnexpectedValueException $e) { $this->flashMessage('Máte špatně nastavenou cestu!', 'error'); $this->template->badPath = TRUE; } $exec = $this->serverRepo->getRunParams($this->selectedServerId)->executable; $this->template->active = $this->gameUpdater->getVersionFromFileName($exec); }
public function render() { $this->template->setFile(__DIR__ . '/Udates.latte'); $this->template->dowJars = array_merge($this->gameUpdater->getSnapshotsJars(), $this->gameUpdater->getStableJars()); $this->template->render(); }