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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.