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

(This post was last modified: 11-29-2016, 06:22 AM by mla.)

With:


PHP Code:
$config['ion_auth'] ['identity'] = 'new_value'


I initialize $config array; but it isn't the same array where original configuration ion_auth was loaded...

If I try:


PHP Code:
var_dump($config); 


I have:

array(1) { ["ion_auth"]=> array(1) { ["identity"]=> string(9) "new_value" } }

If I try:


PHP Code:
var_dump($this->config); 


I see the original value, as loaded from file...

object(CI_Config)#3 (3) {

["config"]=> &array(...)
{
    ["ion_auth"]=> array(...)
        {  ["default_rounds"]=> int(8)
            ["identity"]=> string(5) "email"
            ["min_password_length"]=> int(8)
        }
}
}
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