$router = new \Ore2\Router(); ## ルート登録 # / => 引数のclosureがコール $router->get('/', function(){ return $this->html('<span style="color:red">123</span>'); }); # /name/uzulla => 引数のクロージャがコールされ、コンテナには引数が $router->get('/name/:name', function(){ return $this->html("hello {$this->c->routeParams['name']}"); }); # クラス名での設定 $router->get('/sample', '\\MyApp\\SampleAction::sample'); ## ルーティング実行 $method = 'get'; $