Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Dynamic Request URI / Allow PATH_INFO Environment #346

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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.

None yet

1 participant