Settings
miSettings is a singleton class where all application settings should reside. Programmer can set and get values through get(), set(), setArray() methods.
<?php
$settings = miSettings::singleton();
$settings->set('IMAGE_TMP_PATH', '/tmp');
$settings->setArray(
'DB_HOST' => 'localhost',
'DB_USERNAME' => 'user',
'DB_PASSWORD' => 'pass'
);
print($settings->get('DB_USERNAME')); // Will output: user
?>