File path: dist/twist/Core/Utilities/Route.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
controller
— Add a controller 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 | Description |
---|---|
$strURI | n/a |
$mxdController | n/a |
[$mxdBaseView = true] | n/a |
[$mxdCache = false] | n/a |
[$arrData = array()] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strURI = 'foo';
$mxdController = 'foo-123';
$mxdBaseView = true;
$mxdCache = false;
$arrData = array();
//Call the function controller with the example vars
Twist::Route() -> controller($strURI, $mxdController, $mxdBaseView, $mxdCache, $arrData);