示例#1
0
 /**
  * Boots up SF.
  */
 private function bootUp()
 {
     $this->frameworkClassLoader = new ClassLoader($this->mainLoadedConfig['document_root']);
     $this->registerAutoload();
     $this->setUnhandledExceptionHandler();
     // Check required fields
     $this->checkRequiredConfigFields($this->mainLoadedConfig, $this->requiredMainConfig);
     $this->loadAdditionalConfig($this->mainLoadedConfig['framework_dir'], $this->mainLoadedConfig['config_type'], $this->mainLoadedConfig);
     $this->setExceptionHandlingParams();
     // Check required fields
     $this->checkRequiredConfigFields($this->config->getAllFields(), $this->requiredSystemConfig);
     // Set up logger
     if ($this->config->get('error_log_enabled') == true) {
         $this->setUpLogger();
     }
     $this->setIniValues();
     $frameworkDir = $this->config->get('framework_dir');
     // Load libs
     $this->loadLibs($frameworkDir);
     // Parse URL
     $this->processUrl();
     $this->checkLanguage($this->url->getCurrentLanguage());
     $this->genConfigValues();
     // Init template engine
     $this->tplEngine = $this->initTplEngine($this->config->get('app_dir'));
     $this->assignValsIntoTpl();
     $this->connectToDb();
     $this->initGlobalArrays();
     $this->sessionAndAuth($this->config->get('pages_access'));
 }