Closed sm2017 closed 7 years ago
Any idea?
@sm2017
require_once 'vendor/autoload.php';
use Klein\Klein;
$app = new Klein();
$app->respond('/check/[:name]/?', function ($request) {
return 'Hello ' . $request->name;
});
$app->dispatch();
@jahak7 thanks for your reply
/check
must be case insensitive but in your code is case sensitive
Loop through the various url related values within $_SERVER and force them to be lowercase before your create your $klein object.
Ok , thanks
How can I do this?
/check
must be case insensitive but[:name]
is case sensitive Also/check/test
is working but/check/test/
is 404 I want to have both