symfony - Symfomy2 get url parameter in routing condition -
i trying set following route
/** * @route( * "/api/list/{setname}/{order}", * condition= "request.get('order') == 'something' " * * ) */
but can produce 404s because condition never true although pass in order argument. guess "request.get('order')" part wrong, how it?
try
condition= "request.query.get('order') == 'something' "
instead of
condition= "request.get('order') == 'something' "
Comments
Post a Comment