Welcome Guest, Not a member yet? Register   Sign In
set 404 custom error
#1

Hi, if i set 404 error with this route (where Errors is the name the controller and show404 the method), i have a php error: Class 'Errors' not found.

Code:
$routes->set404Override(Errors::show404);

if i set error with this route the page 404 work.

Code:
$routes->set404Override(function(){echo view('show404.php');});

Why? Where i wrong?

Thanks for the support.
Reply


Messages In This Thread
set 404 custom error - by eleumas - 04-23-2020, 03:15 AM
RE: set 404 custom error - by ajayamagar - 07-04-2020, 08:41 PM
RE: set 404 custom error - by wdeda - 07-05-2020, 02:41 PM
RE: set 404 custom error - by InsiteFX - 07-05-2020, 03:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB