kieranalington/gluephp — pull request #1 by Th3-Night (2012-04-18 11:12:06+00:00)
Title: Changed how we call the class and how we get the uri

Added `$directory` parameter on `glue::stick` to use the script into a directory, before that was impossible to use glue into a directory (`http://yourpage.com/somedir`).

Added `parse_url` then now we can use `get` parameters on the routes.

Added `trim` to `$path` and `$regex` to fix error when the uri is `/some` and the route is `/some/`.

Changed `$obj->$method($matches)` to `call_user_func_array(array($obj,$method), $matches)` then if we add something like `array('/user/(\w+)-(\d+)' => 'user')` we can do

class user{

function GET($username, $userid){

echo 'The id of '.$username.' is '.$userid;

}

}