Jump to content

Recommended routing libraries?


tmallen

Recommended Posts

Does anybody know of a simple, reliable PHP-based URL routing library? I have found two candidates, neither of which meets my requirements:

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

 

Link to comment
https://forums.phpfreaks.com/topic/198023-recommended-routing-libraries/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.