TwistPHP Documentation

aliasDomain

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

aliasDomainAdd an alias domain or IP address to listen on, routes registered to this instance will only be served if the domain or IP matches those entered as an alias or main domain.

Parameters

Name Type Description
$strAliasListenerstringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strAliasListener 'foo';

//Call the function aliasDomain with the example vars
Twist::Route() -> aliasDomain($strAliasListener);