CRUDlex\ControllerProvider::getNotFoundPage PHP Method

getNotFoundPage() protected method

Generates the not found page.
protected getNotFoundPage ( Silex\Application $app, string $error ) : Response
$app Silex\Application the Silex application
$error string the cause of the not found error
return Symfony\Component\HttpFoundation\Response the rendered not found page with the status code 404
    protected function getNotFoundPage(Application $app, $error)
    {
        return new Response($app['twig']->render('@crud/notFound.twig', ['error' => $error, 'crudEntity' => '', 'layout' => $app['crud.layout']]), 404);
    }