CI_Config =============== Config Class This class contains functions that enable config files to be managed * Class name: CI_Config * Namespace: Properties ---------- ### $config public array $config = array() List of all loaded config values * Visibility: **public** ### $is_loaded public array $is_loaded = array() List of all loaded config files * Visibility: **public** ### $_config_paths public array $_config_paths = array(APPPATH) List of paths to search when trying to load a config file. * Visibility: **public** Methods ------- ### __construct void CI_Config::__construct() Class constructor Sets the $config data from the primary config.php file as a class variable. * Visibility: **public** ### load boolean CI_Config::load(string $file, boolean $use_sections, boolean $fail_gracefully) Load Config File * Visibility: **public** #### Arguments * $file **string** - <p>Configuration file name</p> * $use_sections **boolean** - <p>Whether configuration values should be loaded into their own section</p> * $fail_gracefully **boolean** - <p>Whether to just return FALSE or display an error message</p> ### item string|null CI_Config::item(string $item, string $index) Fetch a config file item * Visibility: **public** #### Arguments * $item **string** - <p>Config item name</p> * $index **string** - <p>Index name</p> ### slash_item string|null CI_Config::slash_item(string $item) Fetch a config file item with slash appended (if not empty) * Visibility: **public** #### Arguments * $item **string** - <p>Config item name</p> ### site_url string CI_Config::site_url(string|array $uri, string $protocol) Site URL Returns base_url . index_page [. uri_string] * Visibility: **public** #### Arguments * $uri **string|array<mixed,string>** - <p>URI string or an array of segments</p> * $protocol **string** ### base_url string CI_Config::base_url(string|array $uri, string $protocol) Base URL Returns base_url [. uri_string] * Visibility: **public** #### Arguments * $uri **string|array<mixed,string>** - <p>URI string or an array of segments</p> * $protocol **string** ### _uri_string string CI_Config::_uri_string(string|array $uri) Build URI string * Visibility: **protected** #### Arguments * $uri **string|array<mixed,string>** - <p>URI string or an array of segments</p> ### system_url string CI_Config::system_url() System URL * Visibility: **public** ### set_item void CI_Config::set_item(string $item, string $value) Set a config file item * Visibility: **public** #### Arguments * $item **string** - <p>Config item key</p> * $value **string** - <p>Config item value</p>