ErrorPageController

class \TYPO3\CMS\Core\Controller\ErrorPageController

A class representing error messages shown on a page, rendered via fluid.

Classic Example: "No pages are found on rootlevel"

Table of Contents

Properties

$view  : TemplateView
The view object

Methods

__construct()  : mixed
Sets up the view
errorAction()  : string
Renders the view and returns the content

Properties

$view

The view object

protected TemplateView $view

Methods

__construct()

Sets up the view

public __construct() : mixed

errorAction()

Renders the view and returns the content

public errorAction(string $title, string $message[, int $errorCode = 0 ][, int|null $httpStatusCode = null ]) : string

Parameters

$title : string

The title to be shown

$message : string

The message to be shown

$errorCode : int = 0

The error code to be referenced

$httpStatusCode : int|null = null

The http status code

Return values

string —

the output of the view

On this page