- Where Developers Learn, Share, & Build Careers


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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -