config('qoob/app/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 (using namespaces) $qoob->route('GET /things/going', 'app\test->blah'); $qoob->route('GET /date/:month/:day/:year', 'app\test->dating'); // callbacks with different request methods (without namespaces) $qoob->route('GET /home [sync]', 'request_types->sync'); $qoob->route('GET /home [ajax]', 'request_types->ajax'); // database test $qoob->route('GET /model', 'app\test->modelTest'); // view test $qoob->route('GET /template', 'app\test->templateTest'); //______________________________________________________________________________ // execute $qoob->run(); ?>