use response::error in front controller.
This commit is contained in:
@@ -152,7 +152,7 @@ if (is_null($response))
|
|||||||
{
|
{
|
||||||
$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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user