File path: dist/twist/Core/Utilities/Route.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
addRoute
— Add the route into the array of listeners, when the serve function if called the listeners array will be processed and a page will be served
Name | Description |
---|---|
$strURI | n/a |
$strType | n/a |
$strItem | n/a |
[$mxdBaseView = true] | n/a |
[$mxdCache = false] | n/a |
[$arrData = array()] | n/a |
[$strRequestMethod = null] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strURI = 'foo';
$strType = 'foo';
$strItem = 'foo';
$mxdBaseView = true;
$mxdCache = false;
$arrData = array();
$strRequestMethod = null;
//Call the function addRoute with the example vars
Twist::Route() -> addRoute($strURI, $strType, $strItem, $mxdBaseView, $mxdCache, $arrData, $strRequestMethod);