controllers/FrontController.php
public function error(Request $request, Response $response, Exception $exception)
    {
        $this->view->render(
            $response,
            'error.tpl',
            [
                'config'    => $this->config,
                'errors'    => $exception->getMessage(),
                'class'     => 'video',
                'title'     => _('Error'),
                'canonical' => $this->getCanonicalUrl($request),
                'locale'    => $this->localeManager->getLocale(),
            ]
        );

        return $response->withStatus(500);
    }
public function error(Request $request, Response $response, Exception $exception)
    {
        $this->view->render(
            $response,
            'error.tpl',
            [
                'config'    => $this->config,
                'errors'    => $exception->getMessage(),
                'class'     => 'video',
                'title'     => _('Error'),
                'canonical' => $this->getCanonicalUrl($request),
                'locale'    => $this->localeManager->getLocale(),
            ]
        );

        return $response->withStatus(500);
    }
public function error ( Request $ request , Response $ response , Exception $ exception ) { $ this -> view -> render ( $ response , 'error.tpl' , [ 'config' => $ this -> config , 'errors' => $ exception -> getMessage ( ) , 'class' => 'video' , 'title' => _ ( 'Error' ) , 'canonical' => $ this -> getCanonicalUrl ( $ request ) , 'locale' => $ this -> localeManager -> getLocale ( ) , ] ) ; return $ response -> withStatus ( 500 ) ; }
Display an error page.

@param Request   $request   PSR-7 request
@param Response  $response  PSR-7 response
@param Exception $exception Error to display

@return Response HTTP response
Display an error page .