Skip to content

Instantly share code, notes, and snippets.

@Pictor13
Last active July 18, 2018 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pictor13/47eb6c590a1af07ac9a6d7726285189a to your computer and use it in GitHub Desktop.
Save Pictor13/47eb6c590a1af07ac9a6d7726285189a to your computer and use it in GitHub Desktop.
Notes about AgaviRouting
  • input parameters are the input in the querystring. extraParams dunno yet. usedParams are the params provided to url generation method.
  • agavi doesn't filter the just valid parameters; if you add &foo=bar it will end in the result of gen(nullRoute)
    • (any parameter to just pass the validated parameters?)
  • AgaviWEBrouting encodes with rawurlencode by default (to test it try to create an AgaviRoutingValue with routing->createValue. One of the params should be to explicitly choose encoding or not.
  • fillGenNullParameters() returns getMatchedParameters(), that are the $url_params passed to routing->gen(route, url_params) E.g. {"firstchar":"a","baseSearch":"ricerca","baseVenue":"luoghi","basePath":"\/it\/biglietti"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment