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' " 

check more here , here


Comments

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -