public static function read($sConfigFile)
    {
        $sConfigFile = realpath($sConfigFile);
        if(!is_readable($sConfigFile))
        {
            throw new \Jaxon\Config\Exception\File(jaxon_trans('config.errors.file.access', array('path' => $sConfigFile)));
        }
        $aConfigOptions = include($sConfigFile);
        if(!is_array($aConfigOptions))
        {
            throw new \Jaxon\Config\Exception\File(jaxon_trans('config.errors.file.content', array('path' => $sConfigFile)));
        }

        return $aConfigOptions;
    }
public static function read($sConfigFile)
    {
        $sConfigFile = realpath($sConfigFile);
        if(!is_readable($sConfigFile))
        {
            throw new \Jaxon\Config\Exception\File(jaxon_trans('config.errors.file.access', array('path' => $sConfigFile)));
        }
        $aConfigOptions = include($sConfigFile);
        if(!is_array($aConfigOptions))
        {
            throw new \Jaxon\Config\Exception\File(jaxon_trans('config.errors.file.content', array('path' => $sConfigFile)));
        }

        return $aConfigOptions;
    }
public static function read ( $ sConfigFile ) { $ sConfigFile = realpath ( $ sConfigFile ) ; if ( ! is_readable ( $ sConfigFile ) ) { throw new \ Jaxon \ Config \ Exception \ File ( jaxon_trans ( 'config.errors.file.access' , array ( 'path' => $ sConfigFile ) ) ) ; } $ aConfigOptions = include ( $ sConfigFile ) ; if ( ! is_array ( $ aConfigOptions ) ) { throw new \ Jaxon \ Config \ Exception \ File ( jaxon_trans ( 'config.errors.file.content' , array ( 'path' => $ sConfigFile ) ) ) ; } return $ aConfigOptions ; }
Read options from a PHP config file

@param string        $sConfigFile        The full path to the config file

@return array
Read options from a PHP config file