public function setup($sConfigFile)
    {
        $aConfigOptions = $this->config()->read($sConfigFile);

        // Setup the config options into the library.
        $sLibKey = 'lib';
        $xLibConfig = $this->di()->getConfig();
        $xLibConfig->setOptions($aConfigOptions, $sLibKey);

        $sAppKey = 'app';
        $xAppConfig = new \Jaxon\Config\Config();
        $xAppConfig->setOptions($aConfigOptions, $sAppKey);

        // Register user functions and classes
        $this->getPluginManager()->registerFromConfig($xAppConfig);

        return $this;
    }
public function setup($sConfigFile)
    {
        $aConfigOptions = $this->config()->read($sConfigFile);

        // Setup the config options into the library.
        $sLibKey = 'lib';
        $xLibConfig = $this->di()->getConfig();
        $xLibConfig->setOptions($aConfigOptions, $sLibKey);

        $sAppKey = 'app';
        $xAppConfig = new \Jaxon\Config\Config();
        $xAppConfig->setOptions($aConfigOptions, $sAppKey);

        // Register user functions and classes
        $this->getPluginManager()->registerFromConfig($xAppConfig);

        return $this;
    }
public function setup ( $ sConfigFile ) { $ aConfigOptions = $ this -> config ( ) -> read ( $ sConfigFile ) ; // Setup the config options into the library. $ sLibKey = 'lib' ; $ xLibConfig = $ this -> di ( ) -> getConfig ( ) ; $ xLibConfig -> setOptions ( $ aConfigOptions , $ sLibKey ) ; $ sAppKey = 'app' ; $ xAppConfig = new \ Jaxon \ Config \ Config ( ) ; $ xAppConfig -> setOptions ( $ aConfigOptions , $ sAppKey ) ; // Register user functions and classes $ this -> getPluginManager ( ) -> registerFromConfig ( $ xAppConfig ) ; return $ this ; }
Read config options from a config file and setup the library

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

@return Jaxon
Read config options from a config file and setup the library