[eluser]jimsefton[/eluser]
[quote author="CroNiX" date="1362671980"]
Then, if it's autoloaded, in any of your controllers you can just:
Code:
$pref = $this->prefs->get_key('some_key');
and check to see if it's boolean FALSE to make sure it existed.[/quote]
Hi,
I presume you mean get_pref? If so I'm not sure if I'm doing something else wrong here?
Code:
Fatal error: Call to a member function get_pref() on a non-object in..
I presume the this is right (reflecting my DB column names)?:
Code:
$this->pref_array[$pref['setting_name']] = $pref['setting_value'];