mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Display 404 error if a route cannot be found
This commit is contained in:
parent
527e16c924
commit
6286fd3397
2 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue