예제 #1
0
파일: core.php 프로젝트: nikitakit/RevTK
 /**
  * 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());
 }
예제 #2
0
파일: core.php 프로젝트: krisodb/RevTK
 /**
  * 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());
 }