src/CRUDlex/Controller.php
protected function getNotFoundPage($error)
    {
        return new Response($this->twig->render('@crud/notFound.twig', [
            'crud' => $this->service,
            'error' => $error,
            'crudEntity' => '',
            'layout' => $this->service->getTemplate('layout', '', '')
        ]), 404);
    }
protected function getNotFoundPage($error)
    {
        return new Response($this->twig->render('@crud/notFound.twig', [
            'crud' => $this->service,
            'error' => $error,
            'crudEntity' => '',
            'layout' => $this->service->getTemplate('layout', '', '')
        ]), 404);
    }
protected function getNotFoundPage ( $ error ) { return new Response ( $ this -> twig -> render ( '@crud/notFound.twig' , [ 'crud' => $ this -> service , 'error' => $ error , 'crudEntity' => '' , 'layout' => $ this -> service -> getTemplate ( 'layout' , '' , '' ) ] ) , 404 ) ; }
Generates the not found page.

@param string $error
the cause of the not found error

@return Response
the rendered not found page with the status code 404
Generates the not found page .