TwistPHP Documentation

redirect

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

redirectRedirect the user to a new page or site by URL, optionally you can make the redirect permanent.
URL redirects can be passed in as full path/URL or relative to your current URI. For example you can pass in '../../' or './test'

Parameters

Name Type Description
$urlRedirectstringn/a
[$blPermanent = false]booleann/a

Return Values

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

Example

<?php
//Set the variables for the example
$urlRedirect = ;
$blPermanent false;

//Call the function redirect with the example vars
Twist::Twist() -> redirect($urlRedirect$blPermanent);