TwistPHP Documentation

current

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

currentDetect the current active route from the users URI, uses the PHP variable $_SERVER['REQUEST_URI'] to achieve this.
Wild card detection is also carried out here if you are on a wild carded domain.

Parameters

Name Type Description
[$strReturnKey = null]stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strReturnKey null;

//Call the function current with the example vars
Twist::Route() -> current($strReturnKey);