• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I change an array element in the $config array from a Controller?

#1
[eluser]warpspasm[/eluser]
Good Morning!

In application/config/my.php

I have a

$config['my_element'] = 'abcdef';

From a controller in /application/controllers/my_cont.php

function mine()
{
// I'd need to set $config['my_element'] again
// I tried this but it did not work:

global $config;

$config['my_element'] = 'ghijk';

// But it did not work, $config['me_element'] stayed the original value in another function!

}

How can I do this?
Thank you


Messages In This Thread
How can I change an array element in the $config array from a Controller? - by El Forum - 09-24-2012, 10:14 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.