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

As you have realized Ion auth loads config items into its own config key using this scheme

PHP Code:
$this->load->config('ion_auth'TRUE); 

What that means is that $config['ion_auth'] will hold an array of the contents of application/config/ion_auth.php

So to set the identity key this ought to work

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

Or this amounts to the exact same thing only it requires more typing.

PHP Code:
$ion_auth_config $this->config->item('ion_auth');
$ion_auth_config ['identity'] = 'new_value'
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