File path: dist/twist/Twist.php
Namespace: \
redirect
— Redirect 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'
Name | Description |
---|---|
$urlRedirect | n/a |
[$blPermanent = false] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$urlRedirect = ;
$blPermanent = false;
//Call the function redirect with the example vars
Twist::Twist() -> redirect($urlRedirect, $blPermanent);