Notice: Undefined offset: 8192 in /home/miphpf/domains/miphpf.com/public_html/includes/common.inc on line 499

Notice: Undefined offset: 8192 in /home/miphpf/domains/miphpf.com/public_html/includes/common.inc on line 506

Warning: Incorrect key file for table './miphpf_miphpfcom/watchdog.MYI'; try to repair it query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/miphpf.com/public_html/includes/unicode.inc on line 291.', 2, '', 'http://www.miphpf.com/manual/settings.html', '', '18.97.14.88', 1733224391) in /home/miphpf/domains/miphpf.com/public_html/includes/database.mysql.inc on line 121
Settings | MIPHPF - Your Open Source RAD PHP Framework
Skip navigation.
Home

Settings

: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/miphpf.com/public_html/includes/unicode.inc on line 291.

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
?>