chriso/klein.php — Issue #30: respond('404'...) example on wiki broken
Author: johnvilsack
Created: 2012-01-19 22:27:23+00:00
State: open

respond('404', function ($request) {
$page = $request->uri();
echo "Oops, it looks like $page doesn't exist..\n";
});

throws a uri() on non-object whereas the same code will work sans 404.