‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Controller\ErrorPageController Class Reference

Public Member Functions

 __construct ()
 
string errorAction (string $title, string $message, int $errorCode=0, ?int $httpStatusCode=null)
 

Protected Attributes

TemplateView $view
 

Detailed Description

A class representing error messages shown on a page, rendered via fluid. Classic Example: "No pages are found on rootlevel"

Definition at line 29 of file ErrorPageController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Controller\ErrorPageController::__construct ( )

Sets up the view

Definition at line 39 of file ErrorPageController.php.

Member Function Documentation

◆ errorAction()

string TYPO3\CMS\Core\Controller\ErrorPageController::errorAction ( string  $title,
string  $message,
int  $errorCode = 0,
?int  $httpStatusCode = null 
)

Renders the view and returns the content

Parameters
string$title‪The title to be shown
string$message‪The message to be shown
int$errorCode‪The error code to be referenced
int | null$httpStatusCode‪The http status code
Returns
‪string the output of the view

Definition at line 59 of file ErrorPageController.php.

References TYPO3\CMS\Core\Information\Typo3Information\URL_DONATE, and TYPO3\CMS\Core\Information\Typo3Information\URL_EXCEPTION.

Member Data Documentation

◆ $view

TemplateView TYPO3\CMS\Core\Controller\ErrorPageController::$view
protected

The view object

Definition at line 34 of file ErrorPageController.php.