public function fetchConfigFile($name)
    {
        $name = str_replace($this->getPrefix(), '', $name);
        $path = $this->getPath().$name.'.php';

        //check that this is a legitimate file
        if (is_file($path)) {
            //set the options var
            $options = require $path;

            //add the name in
            $options['name'] = $name;

            return $options;
        }

        return false;
    }
public function fetchConfigFile($name)
    {
        $name = str_replace($this->getPrefix(), '', $name);
        $path = $this->getPath().$name.'.php';

        //check that this is a legitimate file
        if (is_file($path)) {
            //set the options var
            $options = require $path;

            //add the name in
            $options['name'] = $name;

            return $options;
        }

        return false;
    }
public function fetchConfigFile ( $ name ) { $ name = str_replace ( $ this -> getPrefix ( ) , '' , $ name ) ; $ path = $ this -> getPath ( ) . $ name . '.php' ; //check that this is a legitimate file if ( is_file ( $ path ) ) { //set the options var $ options = require $ path ; //add the name in $ options [ 'name' ] = $ name ; return $ options ; } return false ; }
Fetches a config file given a path.

@param string $name

@return mixed
Fetches a config file given a path .