CodeIgniter Forums
Loading config items from models - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Loading config items from models (/thread-47587.html)



Loading config items from models - El Forum - 12-14-2011

[eluser]tarciozemel[/eluser]
Hi, folks!

I'm trying to load config items from my models, but I can't do. I have important values to be used in model functions parameters and I really need this.

I already tryed:

Code:
var $config_value = $this->config->item('whatever');

And

Code:
var $CI =& get_instance();
var $config_value = $CI->config->item('whatever');

But not works. :down:

Suggestions?