Codeigniter config set_item

Asked

Viewed 69 times

1

I use the Codeigniter, and I made a config and now I can’t set the value for it. Actually I can, but the value is only for the Controller current. If I switch to another and pull that config, the value is reset again. That’s right?

I make the change this way:

$this->config->set_item('teste', TRUE);

1 answer

0

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

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

Doc Codeigniter: Setting a Config Item

  • 1

    Yes, that would be the question! After posting this question, I started thinking and I realized it too!! rsrsrsrsrsr Thank you so much for your help friend!! Hug

Browser other questions tagged

You are not signed in. Login or sign up in order to post.