Welcome Guest, Not a member yet? Register   Sign In
set_item for custom configs
#1

[eluser]Unknown[/eluser]
Is there a way to set the value of a custom config. I can retrieve a custom config but I can't find a way to set it.

Code:
echo $this->config->item('base_url') . '<br>';
echo $this->config->item('base_url', 'myconfig') . '<br>';

$this->config->load('myconfig', TRUE);
echo $this->config->item('base_url') . '<br>';
echo $this->config->item('base_url', 'myconfig') . '<br>';

// This sets the base config
$this->config->set_item('base_url', 'new_url');
// How do I set the myconfig setting???
$this->config->set_item('base_url', 'new_myconfig_url', "myconfig");

echo $this->config->item('base_url') . '<br>';
echo $this->config->item('base_url', 'myconfig') . '<br>';


Messages In This Thread
set_item for custom configs - by El Forum - 01-13-2009, 11:08 AM
set_item for custom configs - by El Forum - 01-13-2009, 01:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB