#6491: Case insensitive routing -----------------------------+---------------------------------------------- Reporter: kunalpunjabi | Type: Bug Status: new | Priority: Medium Milestone: 1.2.x.x | Component: General Version: 1.2 Final | Severity: Normal Keywords: | Php_version: PHP 5 Cake_version: | -----------------------------+---------------------------------------------- I am trying to get case insensitive routing working I found an article by pseudocoder on using (?i), however that causes some parsing problems..sometimes the Users controller puts (?i) in the URL and I get 'missing controller'.
This is what routes.php contains: Router::connect('/(?i)users', array('controller' => 'users')); Router::connect('/(?i)register', array('controller' => 'users', 'action' => 'add')); However, if I do a delete, or an edit, it does its job and redirects to a bad url. Example below: http://mywebsitename.com/users/edit/1 After the edit is done and I press submit, and it redirects to: http://mywebsitename.com/(?i)users Error message: Missing Controller Error: (Controller could not be found. Error: Create the class (Controller below in file: app\controllers\(controller.php It will work for any special mappings (for example: url.com/REGISTER, which is routed to users/register would work. However, mywebsitename.com/USERS/register would not) so 2 problems here 1) Controller names are not case sensitive 2) Even for the 'special' actions that are (like the register example above), it causes routing problems sometimes. I was looking for a working way to get cases insensitive routing working. Seems like this is something that should be built in, because many people would want it. Update: Seems this problem is a remnant from the php4 days. Adding this ticket in as per gwoo's recommendation. Update: I am trying to get a simpletest test case written but it would take me a bit to get familiarized with the setup so I'll come back here later when that is done. -Kunal (xkunalx on IRC) -- Ticket URL: <https://trac.cakephp.org/ticket/6491> CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/> Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tickets cakephp" group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~----------~----~----~----~------~----~------~--~---