Display 404 error if a route cannot be found

This commit is contained in:
Kijin Sung 2020-06-18 13:25:16 +09:00
parent 527e16c924
commit 6286fd3397
2 changed files with 11 additions and 4 deletions

View file

@ -239,10 +239,7 @@ class Context
$url = $_SERVER['REQUEST_URI'];
$route = Rhymix\Framework\Router::getRequestArguments($method, $url, Rhymix\Framework\Router::getRewriteLevel());
self::setRequestArguments($route->args);
if ($route->status !== 200)
{
}
self::set('route_info', $route);
}
else
{