Summary | Horde Routes does not work |
Queue | Horde Framework Packages |
Queue Version | Git master |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | chuck (at) horde (dot) org, mike (at) naberezny (dot) com |
Requester | jeromebri (at) hotmail (dot) com |
Created | 05/13/2010 (5535 days ago) |
Due | 05/13/2010 (5535 days ago) |
Updated | 05/30/2010 (5518 days ago) |
Assigned | 05/13/2010 (5535 days ago) |
Resolved | 05/30/2010 (5518 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Not A Bug
specifically:
"Due to the way Horde/Routes makes use of regular expressions for URL
recognition, Horde_Routes_Mapper requires a valid list of Controllers
before it can match URL's."
If you add this line before the routematch() call:
$m->createRegs(array('articles'));
Then the example works fine.
Assigned to Mike Naberezny
State ⇒ Assigned
Priority ⇒ 1. Low
Patch ⇒ No
$m = new Horde_Routes_Mapper();
$m->connect(':controller/:action/:id');
$result = $m->routematch( 'article/show/9' );
I'm using PHP 5.3.1-5.
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Horde Routes does not work
Due ⇒ 05/13/2010
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
State ⇒ Unconfirmed
$m = new Horde_Routes_Mapper();
$m->connect(':controller/:action/:id');
$result = $m->routematch( 'article/show/9' );
I'm using PHP 5.3.1-5.