Ticket Details
Custom regex subpattern support in routes
RFC Ticket (closed)
Currently, the `{:id}` part of `"/users/view/{:id}"` cannot be matched against a custom regular expression. The syntax to do this will be: `{:id:\d+}`, i.e.:
{{{
Router::connect("/{:controller}/{:action}/{:id:\d+}", ...);
}}}
Currently, `http\Route` correctly parses these patterns out into the `$_subPatterns` property, but these sub-patterns are not inserted when calculating the final route regular expression.
This needs to be implemented and tested.
Updates
on 11.01.09
by gwoo
- version was changed to lithium-0.2
on 11.11.09
by nate
- owner was changed to nate
(fixed)
on 11.13.09
by nate
- status was changed to closed
- resolution was changed to fixed