config('qoob/api/config.ini.php'); //______________________________________________________________________________ // add routes // closure style callbacks $qoob->route('GET /', function() { echo '

open qoob

this is the default page.

'; }); $qoob->route('GET /home/:sometime', function($args) { echo '

open qoob

this is the home method.

args:

'.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'); //______________________________________________________________________________ // execute $qoob->run(); ?>