Closed mertgibi closed 3 years ago
How can I make a dashboard group specific error page? Also how can I use a controller in an error callback
my code
$app->router->get('/', function() { return 'Hello world'; }'); $app->router->group('/dashboard', function($router){ $router->get('/', function(){ return 'Dashboard page'; }); $router->error(function() { die('Not found dashboard page'); }); }); $app->router->error(function() { die('Not found this page'); });
use callback
$app->router->error('Home@not_found');
Hi @Venloress , There is no way to do this right now. But we can add a feature like that in next versions.
How can I make a dashboard group specific error page? Also how can I use a controller in an error callback
my code
use callback