TwistPHP Documentation

errorPage

File path: dist/twist/Classes/Error.class.php
Namespace: Twist\Classes
Extends:

errorPageOutput a response code and a custom message if required to the user, this function handles all HTTP response codes.

Parameters

Name Type Description
$intErrorCodeintegern/a
[$strCustomDescription = null]stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$intErrorCode 124;
$strCustomDescription null;

//Call the function errorPage with the example vars
\Twist\Classes\Error::errorPage($intErrorCode$strCustomDescription);