symfony - Symfony2 FOSJsRoutingBundle: how to apply filters -


i know how apply filters routing.generate().

in template can following:

var remotepathplayersearch = "{{ path('_api_get_players_search', {searchterm: '%query', limit: 5}) |url_decode|raw }}"; 

the equivalent in js is

routing.generate('_api_get_players_search', {'searchterm':'%query', 'limit': 5}, true); 

now how can apply url_decode , raw url generation?

you can't. using fosjsroutingbundle url generated via javascript on client machine, not on server.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -