TwistPHP Documentation

_var

File path: dist/twist/Core/Controllers/Base.controller.php
Namespace: Twist\Core\Controllers
Extends:

_varGet a Route URI var from the route vars, passing in null will return the whole array of route vars.

Parameters

Name Type Description
[$strVarKey = null]stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strVarKey null;

//Call the function _var with the example vars
$resBase = new \Twist\Core\Controllers\Base();
$resBase -> _var($strVarKey);