route('GET /', function() { echo '
this is the default page.
'; }); $qoob->route('GET /home/:sometime', function($args) { echo 'this is the home method.
'.print_r($args, true).''; }); // class->method style callbacks $qoob->route('GET /things/going', 'test->blah'); $qoob->route('GET /date/:month/:day/:year', 'test->dating'); // callbacks with different request methods $qoob->route('GET /home [sync]', 'request_types->sync'); $qoob->route('GET /home [ajax]', 'request_types->ajax'); //run $qoob->parseRoutes(); ?>