public function addRouteParam($param, $key = '')
    {
        $this->routeParams[] = $param;
        
        if ($key != '') {
            $this->routeParams[$key]= $param;
        }
    }
public function addRouteParam($param, $key = '')
    {
        $this->routeParams[] = $param;
        
        if ($key != '') {
            $this->routeParams[$key]= $param;
        }
    }
public function addRouteParam ( $ param , $ key = '' ) { $ this -> routeParams [ ] = $ param ; if ( $ key != '' ) { $ this -> routeParams [ $ key ] = $ param ; } }
Adds an parameter which is detected in the route.

@access public
@param mixed $param
@param string $key
Adds an parameter which is detected in the route .