public function setConfigPath($path) 
    {
        if (file_exists($path)) {
            $this->configPath = $path;
        } else {
            throw new Exception(
                'Configuration file could not be found at ' .
                htmlspecialchars($path, ENT_QUOTES, 'UTF-8')
            );
        }
    }
public function setConfigPath($path) 
    {
        if (file_exists($path)) {
            $this->configPath = $path;
        } else {
            throw new Exception(
                'Configuration file could not be found at ' .
                htmlspecialchars($path, ENT_QUOTES, 'UTF-8')
            );
        }
    }
public function setConfigPath ( $ path ) { if ( file_exists ( $ path ) ) { $ this -> configPath = $ path ; } else { throw new Exception ( 'Configuration file could not be found at ' . htmlspecialchars ( $ path , ENT_QUOTES , 'UTF-8' ) ) ; } }
Sets the path to the configuration file

@param string $path the path to the config

@throws Exception if file not found
@return void
Sets the path to the configuration file