System:Bootstrap:setConfig

From Aspen Documentation

Sets a config value from within your application code.

Since 1.0

Contents

Arguments

void setConfig (string $key, mixed $value)

key
The configuration index/key. Does not have to be an existing value.
value
Value to assign.

Returns

Does not return a value as it's used for setting one.

Notes

  • This function will override all user/app/default configuration settings.

Examples

Example:

$this->APP->setConfig('exampleconfig', 'itsvalue');