Here's the thing... With this class there is no "root" configuration... so if you simply set DbConfig::set('key', 'string_value') you will have an issue saving... The class assumes that all configuration information is saved into an array. So, in order for autosaving to work it must be an array...
Try DbConfig::set('key.subkey', 'value'), this will save the information into an array... or DbConfig::set('key', array('subkey' => 'value'))
This may not be the best way to go about this, I'll have to think on whether or not to allow single key -> pair values... I guess it couldn't hurt...
hmm i tried DbConfig::set('site.allow_reg','1'); and i get Fuel\Core\Fuel_Exception [ Error ]: DbConfig: value passed to DbConfig::save() must be an array
PKGPATH/dbconfig/classes/dbconfig.php @ line 103
If that doesn't work I'm going to need you to paste the code you're using over to me so I can test. What it seems to be at the moment is that there is no array to save when save is called... Are you loading the Config before you try to save it?
Lol, sorry. I currently have it configured to autoload on DbConfig::get... would anyone find it beneficial to autoload on a ::set call?
The way I see it, most instances of creating config files can be done more easily by hand coding it...
I am under the assumption that a configuration array would need to be read before it is written... Are there benefits to creating the config programatically that I'm not seeing? I'm open to suggestions...