jtopjian/gluephp — pull request #1 by Th3-Night (2012-04-17 17:10:19+00:00)
Title: Changed how we call the class and how we get the uri

Removed unnecessary `strtoupper` to `$_SERVER['REQUEST_METHOD']`.

Added `$directory` parameter on `glue::stick` to use the script into a directory, before that will be 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; } }`