Documentation

process404

void public static
\Bitrix\Iblock\Component\Tools::process404(
 string $message = "",
 boolean $defineConstant = true,
 boolean $setStatus = true,
 boolean $showPage = false,
 string $pageFile = ""
);

Method executes actions according to passed parameters. Static method.

Parameters

ParameterDescriptionVersion
$messageMessage, displayed by the component bitrix:system.show_message.
$defineConstantWhen parameter is true, the constant ERROR_404 will be Y.
$setStatusWhen parameter is true, the status will be set as 404 Not Found.
$showPageWhen parameter is true, the work area will be cleared and the /404.php file contents displayed.
$pageFileFile to be displayed instead of /404.php.

Example



© «Bitrix24», 2001-2024
Up