/** * Load all environment applications * @throws BadApplicationException */ protected function loadApplications() { $this->aApplications = []; $this->aApplications[self::MAIN_APPLICATION] = $this->oEnvironment->getScudUrl(); $aApps = $this->call(self::MAIN_APPLICATION, self::ALL_APPLICATIONS_METHOD); foreach ($aApps as $aApp) { $this->aApplications[$aApp['name']] = $aApp['url']; } $this->oCache->save(self::ALL_APPLICATION_CACHE_KEY, $this->aApplications, [Cache::EXPIRE => $this->oEnvironment->getCacheTime()]); }
protected function beforeRender() { parent::beforeRender(); $this->template->userLogged = $this->getUser()->isLoggedIn(); $this->template->cdnUrl = $this->environment->getCdn(); }