/** * Set some symfony settings for symfony classes that we use. * * Note! In the Symfony includes, the sfConfig calls are replaced by coreConfig calls. */ private function setSymfonyConfig($debug) { coreConfig::set('sf_root_dir', $this->rootDir); coreConfig::set('sf_symfony_lib_dir', coreConfig::get('core_dir') . DIRECTORY_SEPARATOR . 'sf'); // content encoding for html coreConfig::set('sf_charset', 'utf-8'); // testing or production environment (remote) coreConfig::set('sf_test', $debug); // debugging coreConfig::set('sf_debug', $debug); // output compression for html and also javascripts coreConfig::set('sf_compressed', true && coreToolkit::detectGzipEncodingSupport()); }
/** * Set some symfony settings for symfony classes that we use. * * Note! In the Symfony includes, the sfConfig calls are replaced by coreConfig calls. */ private function setSymfonyConfig($debug) { coreConfig::set('sf_root_dir', $this->rootDir); coreConfig::set('sf_symfony_lib_dir', coreConfig::get('core_dir') . DIRECTORY_SEPARATOR . 'sf'); // content encoding for html coreConfig::set('sf_charset', 'utf-8'); // testing or production environment (remote) coreConfig::set('sf_test', $debug); // debugging coreConfig::set('sf_debug', $debug); // output compression for html // disabled in debug mode because php notices can cause 'Content Encoding Error' making debugging difficult coreConfig::set('sf_compressed', !$debug && coreToolkit::detectGzipEncodingSupport()); }