I want to build case insensitive route with Kohana 3.2
example (as from Kohanas site):
Route::set('sections', '<directory>(/<controller>(/<action>(/<id>)))',
array(
'directory' => '(admin|affiliate)'
))
->defaults(array(
'controller' => 'home',
'action' => 'index',
));
will work with: example.com/admin/home/index but not with: example.com/Admin/home/index (capital ‘A’).
how can I solve this problem? And I don’t want to write something like: 'directory' => '([Aa]dmin|[Aa]ffiliate)' it’s “wrong”.
Here’s a nicer example of the overload method:
Source: https://gist.github.com/2045349