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
Post a Comment