public function requestPath(Request $request, $path = '/:plugin/:prefix/:controller/:action')
    {
        $plugin = empty($request['plugin']) ? null : Inflector::camelize($request['plugin']) . '/';
        $prefix = empty($request->params['prefix']) ? '' : Inflector::camelize($request->params['prefix']) . '/';
        $path = str_replace(
            [':controller', ':action', ':plugin/', ':prefix/'],
            [Inflector::camelize($request['controller']), $request['action'], $plugin, $prefix],
            $path
        );
        $path = str_replace('//', '/', $path);

        return trim($path, '/');
    }
public function requestPath(Request $request, $path = '/:plugin/:prefix/:controller/:action')
    {
        $plugin = empty($request['plugin']) ? null : Inflector::camelize($request['plugin']) . '/';
        $prefix = empty($request->params['prefix']) ? '' : Inflector::camelize($request->params['prefix']) . '/';
        $path = str_replace(
            [':controller', ':action', ':plugin/', ':prefix/'],
            [Inflector::camelize($request['controller']), $request['action'], $plugin, $prefix],
            $path
        );
        $path = str_replace('//', '/', $path);

        return trim($path, '/');
    }
public function requestPath ( Request $ request , $ path = '/:plugin/:prefix/:controller/:action' ) { $ plugin = empty ( $ request [ 'plugin' ] ) ? null : Inflector :: camelize ( $ request [ 'plugin' ] ) . '/' ; $ prefix = empty ( $ request -> params [ 'prefix' ] ) ? '' : Inflector :: camelize ( $ request -> params [ 'prefix' ] ) . '/' ; $ path = str_replace ( [ ':controller' , ':action' , ':plugin/' , ':prefix/' ] , [ Inflector :: camelize ( $ request [ 'controller' ] ) , $ request [ 'action' ] , $ plugin , $ prefix ] , $ path ) ; $ path = str_replace ( '//' , '/' , $ path ) ; return trim ( $ path , '/' ) ; }
Gets an ACO path for current request.

@param \Cake\Network\Request $request Request instance
@param string $path Pattern
@return string
Gets an ACO path for current request .