public function getUrlArg($param = null, $default = false)
    {
        $routes = CarteBlanche::getContainer()->get('router')->getRouteParsed();
        if (!empty($routes)) {
            if ($param=='args') {
                if (isset($routes['args']))
                    return $routes['args'];
            } else {
                if (isset($routes[$param]))
                    return $routes[$param];
                if (isset($routes['args'][$param]))
                    return $routes['args'][$param];
            }
        }
        return $default;
    }
public function getUrlArg($param = null, $default = false)
    {
        $routes = CarteBlanche::getContainer()->get('router')->getRouteParsed();
        if (!empty($routes)) {
            if ($param=='args') {
                if (isset($routes['args']))
                    return $routes['args'];
            } else {
                if (isset($routes[$param]))
                    return $routes[$param];
                if (isset($routes['args'][$param]))
                    return $routes['args'][$param];
            }
        }
        return $default;
    }
public function getUrlArg ( $ param = null , $ default = false ) { $ routes = CarteBlanche :: getContainer ( ) -> get ( 'router' ) -> getRouteParsed ( ) ; if ( ! empty ( $ routes ) ) { if ( $ param == 'args' ) { if ( isset ( $ routes [ 'args' ] ) ) return $ routes [ 'args' ] ; } else { if ( isset ( $ routes [ $ param ] ) ) return $ routes [ $ param ] ; if ( isset ( $ routes [ 'args' ] [ $ param ] ) ) return $ routes [ 'args' ] [ $ param ] ; } } return $ default ; }
Get the value of a specific argument value from current parsed URL

@param   string  $param      The parameter name if so, or 'args' to get all parameters values
@param   mixed   $default    The default value sent if the argument is not setted
@return  string  The value retrieved, $default otherwise
Get the value of a specific argument value from current parsed URL