/** * Generates configuration values. */ private function genConfigValues() { $mainUrl = $this->url->getMainUrlNoLang(); $this->config->set('main_url', $this->url->getMainUrl()); $this->config->set('main_url_no_lang', $this->url->getMainUrlNoLang()); $this->config->set('protocol', $this->url->getProtocol()); $this->config->set('current_page', $this->url->getCurrentPageName()); $this->config->set('current_language', $this->url->getCurrentLanguage()); $this->config->set('url_parts', $this->url->getUrlParts()); $this->config->set('output_components_url', $mainUrl . $this->config->get('output_components_url')); $this->config->set('index_url', $mainUrl . $this->config->get('index_url')); $this->config->set('pages_url', $mainUrl . $this->config->get('pages_url')); }