Skip to content

Conversation

@amrikasir
Copy link

@amrikasir amrikasir commented Dec 7, 2016

if you want PATH_INFO for Request uri:
I change Request.php a bit.

$klein = new \Klein\Klein;
$klein->respond('GET', '/hello', function () {
   return "Hello ";
});

#change REQUEST_URI to PATH_INFO
$requestClass = \Klein\Request::createFromGlobals();
$requestClass->seturi('PATH_INFO');

$klein->dispatch($requestClass);

sorry for my bad english

@amrikasir amrikasir changed the title Update for Dynamic Request uri Env. Update for Dynamic Request URI / Allow PATH_INFO Environment Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant