public function routeParam($name = null, $default = null)
    {
        return $this->getData($this->route->attributes, $name, $default);
    }
public function routeParam($name = null, $default = null)
    {
        return $this->getData($this->route->attributes, $name, $default);
    }
public function routeParam ( $ name = null , $ default = null ) { return $ this -> getData ( $ this -> route -> attributes , $ name , $ default ) ; }
Gets the route parameter with provided name

If its not submitted the default value will be returned.
If no arguments are passed the full URL query parameters from request will
be returned. In this case the default value is ignored.

@param null|string $name
@param mixed $default

@return array|string
Gets the route parameter with provided name