TwistPHP Documentation


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

packageAdd a pre-defined package route (interface) (provided by installed packages) 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.


Name Type Description
[$mxdBaseView = true]mixedn/a
[$mxdCache = false]mixedn/a
[$arrData = array()]arrayn/a

Return Values

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


//Set the variables for the example
$strURI 'foo';
$strPackage 'foo';
$mxdBaseView true;
$mxdCache false;
$arrData = array();

//Call the function package with the example vars
Twist::Route() -> package($strURI$strPackage$mxdBaseView$mxdCache$arrData);