Closed funkytaco closed 8 years ago
I found the problem.
if (stristr($_SERVER['REQUEST_URI'],$uri)) {
$router->respond($method, $uri, [$injector->make($class), $classMethod]);
}
Since a regular expression would fail this check, the router wasn't matching the route.
Hi all,
(klein v2.1.0)
I can't seem to use dynamic routes. For harcoded routes, Klein.php is responding as expected.
I decided to use the name joe (randomly) for this example:
I'm serving everything through index.php behind nginx:
So how do I get it to match route of /api/1.0/tickets/123 where 123 = :id ? Thanks!