Welcome Guest, Not a member yet? Register   Sign In
dynamic $config array Concept
#6

[eluser]Jelmer[/eluser]
The config class should be available within models, that shouldn't be a problem. And in libraries you can access config values by replacing $this-> with get_instance()->, like this (in PHP5):
Code:
get_instance()->config->item('some_item');
And in PHP4 the following should work if I remember correctly:
Code:
$ci =& get_instance();
$ci->config->item('some_item');


Messages In This Thread
dynamic $config array Concept - by El Forum - 05-08-2010, 12:59 PM
dynamic $config array Concept - by El Forum - 05-08-2010, 01:48 PM
dynamic $config array Concept - by El Forum - 05-08-2010, 04:57 PM
dynamic $config array Concept - by El Forum - 05-08-2010, 05:09 PM
dynamic $config array Concept - by El Forum - 05-08-2010, 05:14 PM
dynamic $config array Concept - by El Forum - 05-08-2010, 05:29 PM
dynamic $config array Concept - by El Forum - 05-09-2010, 08:31 PM
dynamic $config array Concept - by El Forum - 05-10-2010, 02:29 AM
dynamic $config array Concept - by El Forum - 05-10-2010, 02:35 AM
dynamic $config array Concept - by El Forum - 05-10-2010, 09:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB