protected function _buildPrefixes()
    {
        $routes = Router::routes();
        foreach ($routes as $key => $route) {
            if (isset($route->defaults['prefix'])) {
                $prefix = Inflector::camelize($route->defaults['prefix']);
                if (!isset($route->defaults['plugin'])) {
                    $this->prefixes[$prefix] = true;
                } else {
                    $this->pluginPrefixes[$route->defaults['plugin']][$prefix] = true;
                }
            }
        }
    }
protected function _buildPrefixes()
    {
        $routes = Router::routes();
        foreach ($routes as $key => $route) {
            if (isset($route->defaults['prefix'])) {
                $prefix = Inflector::camelize($route->defaults['prefix']);
                if (!isset($route->defaults['plugin'])) {
                    $this->prefixes[$prefix] = true;
                } else {
                    $this->pluginPrefixes[$route->defaults['plugin']][$prefix] = true;
                }
            }
        }
    }
protected function _buildPrefixes ( ) { $ routes = Router :: routes ( ) ; foreach ( $ routes as $ key => $ route ) { if ( isset ( $ route -> defaults [ 'prefix' ] ) ) { $ prefix = Inflector :: camelize ( $ route -> defaults [ 'prefix' ] ) ; if ( ! isset ( $ route -> defaults [ 'plugin' ] ) ) { $ this -> prefixes [ $ prefix ] = true ; } else { $ this -> pluginPrefixes [ $ route -> defaults [ 'plugin' ] ] [ $ prefix ] = true ; } } } }
Build prefixes for App and Plugins based on configured routes

@return void
Build prefixes for App and Plugins based on configured routes