#5737: Router::connect issues with underscores in the regex
------------------------------------------+---------------------------------
Reporter: jne | Owner:
Type: Bug | Status: reopened
Priority: Medium | Milestone: 1.2.x.x
Component: Routing/Dispatcher | Version: RC3
Severity: Major | Resolution:
Keywords: Router, underscore, regex | Php_version: PHP 5
Cake_version: RC3 |
------------------------------------------+---------------------------------
Changes (by jne):
* status: closed => reopened
* resolution: needmoreinfo =>
Comment:
Hi,
not sure what a test case is, but does not work on my site.
My old URLs were built like /download_slug_id.html
My site running cake is now using different scheme
entering the quoted route in the route.php
Router::connect('/download_:slug_:id.html', array('controller' =>
'movies', 'action' => 'view'), array('pass' => array('id'), 'id' =>
'[0-9]+'));
And entering in the brower the uri /downoad_one-movie_1234.html did not
pass 1234 as id to the controller 'movies' and action 'view'.
Unsing debug, I only got '4' as id.
--
Ticket URL: <https://trac.cakephp.org/ticket/5737#comment:2>
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---