Codeigniter config set_item

1

I use Codeigniter, and I've done a custom% with% and now I can not set the value for it. Actually I can, but the value is only for config current. If I switch to another and pull that Controller , the value is zeroed again. Is that so?

I make the change this way:

$this->config->set_item('teste', TRUE);
    
asked by anonymous 09.10.2015 / 03:52

1 answer

0

The value is dynamically assigned (a value can be created or the value loaded changes), and its value will only be present within that request.

It does not change the originial file nor its values that is present in the config folder, I believe this is your question.

Doc CodeIgniter: Setting a Config Item

    
09.10.2015 / 15:45