public function initializeConfig()
    {
        $this->configInitialized = true;

        $this->setThemePath($this->app['config']->get('general'));

        $theme = $this->app['config']->get('theme');
        if (isset($theme['template_directory'])) {
            $this->setPath('templatespath', $this->getPath('theme') . '/' . $theme['template_directory']);
        } else {
            $this->setPath('templatespath', $this->getPath('theme'));
        }

        $branding = '/' . trim($this->app['config']->get('general/branding/path'), '/') . '/';
        $this->setUrl('bolt', $branding);
    }
public function initializeConfig()
    {
        $this->configInitialized = true;

        $this->setThemePath($this->app['config']->get('general'));

        $theme = $this->app['config']->get('theme');
        if (isset($theme['template_directory'])) {
            $this->setPath('templatespath', $this->getPath('theme') . '/' . $theme['template_directory']);
        } else {
            $this->setPath('templatespath', $this->getPath('theme'));
        }

        $branding = '/' . trim($this->app['config']->get('general/branding/path'), '/') . '/';
        $this->setUrl('bolt', $branding);
    }
public function initializeConfig ( ) { $ this -> configInitialized = true ; $ this -> setThemePath ( $ this -> app [ 'config' ] -> get ( 'general' ) ) ; $ theme = $ this -> app [ 'config' ] -> get ( 'theme' ) ; if ( isset ( $ theme [ 'template_directory' ] ) ) { $ this -> setPath ( 'templatespath' , $ this -> getPath ( 'theme' ) . '/' . $ theme [ 'template_directory' ] ) ; } else { $ this -> setPath ( 'templatespath' , $ this -> getPath ( 'theme' ) ) ; } $ branding = '/' . trim ( $ this -> app [ 'config' ] -> get ( 'general/branding/path' ) , '/' ) . '/' ; $ this -> setUrl ( 'bolt' , $ branding ) ; }
Takes a loaded config array and uses it to initialize settings that depend on it.
Takes a loaded config array and uses it to initialize settings that depend on it .