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
Parameter | Description | Version |
---|---|---|
$message | Message, displayed by the component bitrix:system.show_message. | |
$defineConstant | When parameter is true, the constant ERROR_404 will be Y . | |
$setStatus | When parameter is true, the status will be set as 404 Not Found . | |
$showPage | When parameter is true, the work area will be cleared and the /404.php file contents displayed. | |
$pageFile | File to be displayed instead of /404.php. |
Example
© «Bitrix24», 2001-2024