php - Symfony 2 case-insensitive routing -
I am currently developing an application using Symfony 2 and would like my routes to be case insensitive.
I have included an example path. It only matches / some_ournal / I think that wants to match any variation on that pattern like / Some_url /, / SOME_URL / etc ...
some_route: Pattern: / some_url / defaults: {_controller: bundle: controller: verb} Does anyone know how I can get it?
Try this:
Some_route: pattern: / {some_url } / Default: {_controller: Bundle: Controller: Action} Requirements: some_url: (? I: some_url) But as already mentioned in the comments, this is a bad practice
Comments
Post a Comment