Voodoo\Core\Config::loadFile PHP Method

loadFile() public method

To load an .ini file
public loadFile ( type $file, type $keyname = "" )
$file type
$keyname type
    public function loadFile($file, $keyname = "")
    {
        if (!file_exists($file)) {
            throw new Exception("Config file '{$file}' doesn't exist or is not readable");
        } else {
            $cnf = parse_ini_file($file, true);
            $this->set($cnf, $keyname);
            return $this;
        }
    }