|
| $config = array() |
|
| $is_loaded = array() |
|
| $_config_paths = array(APPPATH) |
|
Constructor
Sets the $config data from the primary config.php file as a class variable
public
- Parameters
-
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 |
- Returns
- boolean if the file was successfully loaded or not
_assign_to_config |
( |
|
$items = array() ) | |
|
Assign to Config
This function is called by the front controller (CodeIgniter.php) after the Config class is instantiated. It permits config items to be assigned or overriden by variables contained in the index.php file
private
- Parameters
-
- Returns
- void
Build URI string for use in Config::site_url() and Config::base_url()
protected
- Parameters
-
- Returns
- string
Base URL Returns base_url [. uri_string]
public
- Parameters
-
- Returns
- string
item |
( |
|
$item, |
|
|
|
$index = '' |
|
) |
| |
Fetch a config file item
public
- Parameters
-
string | the config item name |
string | the index name |
bool | |
- Returns
- string
load |
( |
|
$file = '' , |
|
|
|
$use_sections = FALSE , |
|
|
|
$fail_gracefully = FALSE |
|
) |
| |
Load Config File
public
- Parameters
-
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 |
- Returns
- boolean if the file was loaded correctly
set_item |
( |
|
$item, |
|
|
|
$value |
|
) |
| |
Set a config file item
public
- Parameters
-
string | the config item key |
string | the config item value |
- Returns
- void
Site URL Returns base_url . index_page [. uri_string]
public
- Parameters
-
- Returns
- string
Fetch a config file item - adds slash after item (if item is not empty)
public
- Parameters
-
string | the config item name |
bool | |
- Returns
- string
System URL
public
- Returns
- string
The documentation for this class was generated from the following file: