You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should have welcome page for route not found handler.
To avoid misunderstanding after Flextype Installation.
/**
* Override the default Not Found Handler with Flextype Welcome page
*/
unset($app->getContainer()['notFoundHandler']);
$app->getContainer()['notFoundHandler'] = function ($flextype) {
return function ($request, $response) use ($flextype) {
$response = new \Slim\Http\Response(404);
$page = file_get_contents(ROOT_DIR . '/src/flextype/welcome.html');
return $response->write($page);
};
};
The text was updated successfully, but these errors were encountered:
We should have welcome page for route not found handler.
To avoid misunderstanding after Flextype Installation.
The text was updated successfully, but these errors were encountered: