use response::error in front controller.
This commit is contained in:
parent
e060c3d1da
commit
829088f3d1
|
|
@ -152,7 +152,7 @@
|
||||||
{
|
{
|
||||||
$route = System\Routing\Router::make(Request::method(), Request::uri(), new System\Routing\Loader)->route();
|
$route = System\Routing\Router::make(Request::method(), Request::uri(), new System\Routing\Loader)->route();
|
||||||
|
|
||||||
$response = (is_null($route)) ? System\Response::make(System\View::make('error/404'), 404) : $route->call();
|
$response = (is_null($route)) ? System\Response::error('404') : $route->call();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue