Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Thomas Allen
April 8, 2010, 5:29 pm
rate this thread
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.
$map = new Horde_Routes_Mapper();
$map->createRegs(array('test', 'cat', 'dog'));
var_dump($map->match('/test')); // array with action => 'index' and id
- » AIX 5.2/php 5.3.2 'make cli' says it succeeds, but no executable
- — Previous thread in » PHP Scripting Forum