protected function _parseArgs($args, $context)
    {
        $pass = [];
        $args = explode('/', $args);

        foreach ($args as $param) {
            if (empty($param) && $param !== '0' && $param !== 0) {
                continue;
            }
            $pass[] = rawurldecode($param);
        }

        return $pass;
    }
protected function _parseArgs($args, $context)
    {
        $pass = [];
        $args = explode('/', $args);

        foreach ($args as $param) {
            if (empty($param) && $param !== '0' && $param !== 0) {
                continue;
            }
            $pass[] = rawurldecode($param);
        }

        return $pass;
    }
protected function _parseArgs ( $ args , $ context ) { $ pass = [ ] ; $ args = explode ( '/' , $ args ) ; foreach ( $ args as $ param ) { if ( empty ( $ param ) && $ param !== '0' && $ param !== 0 ) { continue ; } $ pass [ ] = rawurldecode ( $ param ) ; } return $ pass ; }
Parse passed parameters into a list of passed args.

Return true if a given named $param's $val matches a given $rule depending on $context.
Currently implemented rule types are controller, action and match that can be combined with each other.

@param string $args A string with the passed params. eg. /1/foo
@param string $context The current route context, which should contain controller/action keys.
@return array Array of passed args.
Parse passed parameters into a list of passed args .