Ejemplo n.º 1
0
 /**
  * Load directives from an ini file
  *
  * @uses parse_ini_file()
  * @param string $filename Absolute path to the component ini file to parse
  * @param string $theme The theme to assign the parsed directives to
  * @return boolean
  */
 public final function load_config_file($filename, $theme)
 {
     // try to parse the file into INI sections
     $sections = parse_ini_file($filename, true);
     // get a config?
     if ($sections) {
         // set the current theme being loaded
         self::$theme_scope = $theme;
         // load all parsed sections
         $result = $this->load_config_sections($sections);
         // remove theme scope
         self::$theme_scope = null;
         // all done
         return $result;
     }
     return false;
 }