Welcome Guest, Not a member yet? Register   Sign In
Setting a Config Item
#1

(This post was last modified: 11-28-2016, 05:18 PM by mla.)

Hello
Is it possible to set a value into an item loaded from a config file?

I read into the manual the page about "Config Class"
Expecially about "set_item" function

But which is the syntax for 'item_name' in case item is loaded from a config file?

Example:

In my controller:


PHP Code:
    $this->load->library(array('ion_auth'));
...
    //get 'identity' value from loaded config file
    $id_type $this->config->item('identity''ion_auth');
...
    $id_type 'new_value';
...
    //set 'new_value' to 'identity' config item
    $this->config->set_item('identity'$id_type) ; 

In this case, I set 'new_value' into config array, but NOT in "ion_auth" occurrence...
Is it possible to do this?
Thanks
Reply


Messages In This Thread
Setting a Config Item - by mla - 11-28-2016, 02:07 PM
RE: Setting a Config Item - by dave friend - 11-28-2016, 06:39 PM
RE: Setting a Config Item - by mla - 11-29-2016, 06:04 AM
RE: Setting a Config Item - by dave friend - 11-29-2016, 12:10 PM
[RESOLVED] RE: Setting a Config Item - by mla - 11-29-2016, 12:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB