File path: dist/twist/Core/Utilities/Route.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
current
— Detect 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.
Name | Description |
---|---|
[$strReturnKey = null] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strReturnKey = null;
//Call the function current with the example vars
Twist::Route() -> current($strReturnKey);