src/Cms.php
protected function _initPaths()
    {
        $path = Path::getInstance();
        $path->setRoot(ROOT);

        //  Setup all webroot paths
        $path->set('webroot', Configure::read('App.wwwRoot'));
        foreach ((array) Plugin::loaded() as $name) {
            $plgPath = Plugin::path($name) . '/' . Configure::read('App.webroot') . '/';
            $path->set('webroot', FS::clean($plgPath), Path::MOD_APPEND);
        }

        //  Setup applicatiojn paths
        $paths = Configure::read('App.paths');
        foreach ($paths as $alias => $_paths) {
            $path->set($alias, $_paths);
        }

        return $path;
    }
protected function _initPaths()
    {
        $path = Path::getInstance();
        $path->setRoot(ROOT);

        //  Setup all webroot paths
        $path->set('webroot', Configure::read('App.wwwRoot'));
        foreach ((array) Plugin::loaded() as $name) {
            $plgPath = Plugin::path($name) . '/' . Configure::read('App.webroot') . '/';
            $path->set('webroot', FS::clean($plgPath), Path::MOD_APPEND);
        }

        //  Setup applicatiojn paths
        $paths = Configure::read('App.paths');
        foreach ($paths as $alias => $_paths) {
            $path->set($alias, $_paths);
        }

        return $path;
    }
protected function _initPaths ( ) { $ path = Path :: getInstance ( ) ; $ path -> setRoot ( ROOT ) ; //  Setup all webroot paths $ path -> set ( 'webroot' , Configure :: read ( 'App.wwwRoot' ) ) ; foreach ( ( array ) Plugin :: loaded ( ) as $ name ) { $ plgPath = Plugin :: path ( $ name ) . '/' . Configure :: read ( 'App.webroot' ) . '/' ; $ path -> set ( 'webroot' , FS :: clean ( $ plgPath ) , Path :: MOD_APPEND ) ; } //  Setup applicatiojn paths $ paths = Configure :: read ( 'App.paths' ) ; foreach ( $ paths as $ alias => $ _paths ) { $ path -> set ( $ alias , $ _paths ) ; } return $ path ; }
Init base paths.

@return Path
@throws \JBZoo\Path\Exception
Init base paths .