• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Site global setting variables

#1
[eluser]Yash[/eluser]
Hi,

I want some general global settings variables that can be accessed from anywhere like model,view,controller etc...

I found this code..

Can it be used in model without using of CI=& etc....

What can be the best approach.

Code:
// Loads a config file named blog_settings.php and assigns it to an index named "blog_settings"
$this->config->load('blog_settings', TRUE);

// Retrieve a config item named site_name contained within the blog_settings array
$site_name = $this->config->item('site_name', 'blog_settings');


Messages In This Thread
Site global setting variables - by El Forum - 06-30-2008, 12:29 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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