• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to access $config array

#1
[eluser]Unknown[/eluser]
Hello,

I'm trying to get value which set at config.php from my controller:
Code:
$config['base_url'] = "http://localhost/ci/";

Now I do it like this:
Code:
$this->config->config['base_url']

Is there any better way instead specifying 'config' twice?

Thanks


Messages In This Thread
How to access $config array - by El Forum - 06-19-2011, 03:14 AM
How to access $config array - by El Forum - 06-19-2011, 03:15 AM
How to access $config array - by El Forum - 06-19-2011, 03:21 AM
How to access $config array - by El Forum - 06-20-2011, 12:14 AM
How to access $config array - by El Forum - 06-20-2011, 04:20 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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