Public Member Functions | |
| CI_Config () | |
| load ($file= '', $use_sections=FALSE, $fail_gracefully=FALSE) | |
| item ($item, $index= '') | |
| slash_item ($item) | |
| site_url ($uri= '') | |
| system_url () | |
| set_item ($item, $value) | |
Public Attributes | |
| $config = array() | |
| $is_loaded = array() | |
| CI_Config::CI_Config | ( | ) |
Constructor
Sets the $config data from the primary config.php file as a class variable
public
| string | the config file name | |
| boolean | if configuration values should be loaded into their own section | |
| boolean | true if errors should just return false, false if an error message should be displayed |
| CI_Config::item | ( | $ | item, | |
| $ | index = '' | |||
| ) |
Fetch a config file item
public
| string | the config item name | |
| string | the index name | |
| bool |
| CI_Config::load | ( | $ | file = '', |
|
| $ | use_sections = FALSE, |
|||
| $ | fail_gracefully = FALSE | |||
| ) |
Load Config File
public
| string | the config file name |
| CI_Config::set_item | ( | $ | item, | |
| $ | value | |||
| ) |
Set a config file item
public
| string | the config item key | |
| string | the config item value |
| CI_Config::site_url | ( | $ | uri = '' |
) |
Site URL
public
| string | the URI string |
| CI_Config::slash_item | ( | $ | item | ) |
Fetch a config file item - adds slash after item
The second parameter allows a slash to be added to the end of the item, in the case of a path.
public
| string | the config item name | |
| bool |
| CI_Config::system_url | ( | ) |
System URL
public
| CI_Config::$config = array() |
| CI_Config::$is_loaded = array() |
1.5.7.1