01-16-2009, 03:10 PM
|
#46 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
Quote:
Originally Posted by Salathe
I'm not really clear on the actual utility of this class. How would I go about echoing, for example, a config option called "site_name"?
|
Tanax hit the nail on the head. The purpose is to hold configs for the script to use, users will be able to manage custom ones. So if you want the site name, it will be something like:
PHP Code:
echo $configs->configinfo["site_name"]["value"];
Quote:
Originally Posted by Salathe
Also is there any scope for adding in hierarchical configurations?
|
Never really though of that, is there any particular reason it would be necessary?
Note: I already have a file for configs that the system will not be allowed to edit in core/hard_configs.php (stuff like DB details and system admins).
|
|
|
|