Exemplo n.º 1
0
 /**
  * load a config file, optionally load just selected sections
  *
  * @param  string $config_file filename
  * @param  mixed  $sections    array of section names, single section or null
  *
  * @return Smurty_Internal_Data current Smurty_Internal_Data (or hiweb_tpl or Smurty_Internal_Template) instance for chaining
  */
 public function configLoad($config_file, $sections = null)
 {
     // load Config class
     $config = new Smurty_Internal_Config($config_file, $this->smurty, $this);
     $config->loadConfigVars($sections);
     return $this;
 }