TwistPHP Documentation

setting

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

settingGet or set a single setting by its key, pass in a value (2nd parameter to set/store the value against the key).

Parameters

Name Type Description
$strKeystringn/a
[$strValue = null]stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strKey 'foo';
$strValue null;

//Call the function setting with the example vars
Twist::Framework() -> setting($strKey$strValue);