|
if(!function_exists('route_missing')) |
|
{ |
|
function route_missing($request_method, $request_uri) |
|
{ |
|
halt(NOT_FOUND, "($request_method) $request_uri"); |
|
} |
|
} |
$request_methodand $request_uri must be defined before !
For now, they are only defined a few lines after (in section 6. Check request)
|
# 6. Check request |
|
if($rm = request_method($env)) |
|
# 6.1 Check matching route |
|
if($route = route_find($rm, request_uri($env))) |