File path: dist/twist/Core/Controllers/Base.controller.php
Namespace: Twist\Core\Controllers
_aliasURI
— Register an alias URI for a response function for instance if you had thankYou() as the function name you could register 'thank-you' as an alias URI.
All aliases must be registered from within a __construct function in your controller. Adding an alias means that the original thankYou() will still be callable by routes.
Name | Description |
---|---|
$strURI | n/a |
$strFunctionName | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strURI = 'foo';
$strFunctionName = 'foo';
//Call the function _aliasURI with the example vars
$resBase = new \Twist\Core\Controllers\Base();
$resBase -> _aliasURI($strURI, $strFunctionName);