TwistPHP Documentation

__construct

File path: dist/twist/Core/Routes/Base.route.php
Namespace: Twist\Core\Routes
Extends: Route

__constructCalled when the routes package launches a routes file. A routes file is usually a pre-defined set of route found withing an installable package.

Parameters

Name Type Description
$strPackageKeystringn/a

Return Values

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

Example

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

//Call the function __construct with the example vars
Twist::Base() -> __construct($strPackageKey);