tmallen Posted April 8, 2010 Share Posted April 8, 2010 Does anybody know of a simple, reliable PHP-based URL routing library? I have found two candidates, neither of which meets my requirements: routemap: http://code.google.com/p/routemap/ Horde Routes: http://dev.horde.org/routes/ routemap is too direct: It dispatches directly to static class methods, thus enforcing a structure. Horde Routes do not behave as documented on the website. Note that the returned match array below has no controller set. <?php $map = new Horde_Routes_Mapper(); $map->createRegs(array('test', 'cat', 'dog')); $map->connect(':controller/:action/:id'); var_dump($map->match('/test')); // array with action => 'index' and id => null Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted April 8, 2010 Share Posted April 8, 2010 I just write my own. Quote Link to comment Share on other sites More sharing options...
tmallen Posted April 8, 2010 Author Share Posted April 8, 2010 That's not really a usable recommendation... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.