View Single Post
Old 01-16-2009, 03:10 PM   #46 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by Salathe View Post
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 View Post
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).
__________________

Village Idiot is offline  
Reply With Quote