TwistPHP Documentation

_response

File path: dist/twist/Core/Controllers/Base.controller.php
Namespace: Twist\Core\Controllers
Extends:

_responseHalts all scripts and outputs the desired error page by response code (for example 404 or 403) to the screen.

Parameters

Name Type Description
$intErrorintegern/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
$intError 124;
$strCustomDescription null;

//Call the function _response with the example vars
$resBase = new \Twist\Core\Controllers\Base();
$resBase -> _response($intError$strCustomDescription);