I would like to create a Route at Lithium, which matches
So far i have something like this:
Router::connect('/abc', array('Example::test'));
Is there a possibility to change it to something uncase sensitive.
Thanks for your help, i couldn't find a thing in the docs.
You should be able to do it like this:
Router::connect('/{:dummy:[aA][bB][cC]}', array('Example::test'));
Edit: There is a nicer way to do it as well by creating the Route object by your self
Router::connect(new Route(array(
'pattern' => '@^/ab?$@i',
'params' => array('controller' => 'example', 'action' => 'test'),
'options' => array('compile' => false, 'wrap' => false)
)));
If i brake out the pattern above '@^/ab?$@i'
And you can find more information here: http://li3.me/docs/lithium/net/http/Route