TwistPHP Documentation

redirect

File path: dist/twist/Core/Utilities/Route.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

redirectAdd a redirect that will be called upon a any request (HTTP METHOD) to the given URI.
The URI can be made dynamic by adding a '%' symbol at the end.

Parameters

Name Type Description
$strURIstringn/a
$strURLstringn/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
$strURI 'foo';
$strURL 'foo';
$blPermanent false;

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