CI_Loader::dbutil()

dbutil([$db = NULL[, $return = FALSE]]) Parameters: $db (object) – Database object $return (bool) – Whether to return the Database Utilities instance Returns: Loaded CI_DB_utility instance if $return is set to TRUE, otherwise CI_Loader instance (method chaining) Return type: mixed Loads the Database Utilities class, please refer to that manual for more info.

CI_Loader::dbforge()

dbforge([$db = NULL[, $return = FALSE]]) Parameters: $db (object) – Database object $return (bool) – Whether to return the Database Forge instance Returns: Loaded CI_DB_forge instance if $return is set to TRUE, otherwise CI_Loader instance (method chaining) Return type: mixed Loads the Database Forge class, please refer to that manual for more info.

CI_Loader::database()

database([$params = ''[, $return = FALSE[, $query_builder = NULL]]]) Parameters: $params (mixed) – Database group name or configuration options $return (bool) – Whether to return the loaded database object $query_builder (bool) – Whether to load the Query Builder Returns: Loaded CI_DB instance or FALSE on failure if $return is set to TRUE, otherwise CI_Loader instance (method chaining) Return type: mixed This method lets you load the database class. The two parameters are optional

CI_Loader::config()

config($file[, $use_sections = FALSE[, $fail_gracefully = FALSE]]) Parameters: $file (string) – Configuration file name $use_sections (bool) – Whether configuration values should be loaded into their own section $fail_gracefully (bool) – Whether to just return FALSE in case of failure Returns: TRUE on success, FALSE on failure Return type: bool This method is an alias of the config file loading method: $this->config->load()

CI_Loader::clear_vars()

clear_vars() Returns: CI_Loader instance (method chaining) Return type: CI_Loader Clears cached view variables.

CI_Loader::add_package_path()

add_package_path($path[, $view_cascade = TRUE]) Parameters: $path (string) – Path to add $view_cascade (bool) – Whether to use cascading views Returns: CI_Loader instance (method chaining) Return type: CI_Loader Adding a package path instructs the Loader class to prepend a given path for subsequent requests for resources. As an example, the “Foo Bar” application package above has a library named Foo_bar.php. In our controller, we’d do the following: $this->load->add_package_p

CI_Loader

class CI_Loader library($library[, $params = NULL[, $object_name = NULL]]) Parameters: $library (mixed) – Library name as a string or an array with multiple libraries $params (array) – Optional array of parameters to pass to the loaded library’s constructor $object_name (string) – Optional object name to assign the library to Returns: CI_Loader instance (method chaining) Return type: CI_Loader This method is used to load core classes. Note We use the terms “class” and “library”

CI_Lang::load()

load($langfile[, $idiom = ''[, $return = FALSE[, $add_suffix = TRUE[, $alt_path = '']]]]) Parameters: $langfile (mixed) – Language file to load or array with multiple files $idiom (string) – Language name (i.e. ‘english’) $return (bool) – Whether to return the loaded array of translations $add_suffix (bool) – Whether to add the ‘_lang’ suffix to the language file name $alt_path (string) – An alternative path to look in for the language file Returns: Array of language lines if $return

CI_Lang::line()

line($line[, $log_errors = TRUE]) Parameters: $line (string) – Language line key name $log_errors (bool) – Whether to log an error if the line isn’t found Returns: Language line string or FALSE on failure Return type: string Fetches a single translation line from the already loaded language files, based on the line’s name.

CI_Lang

class CI_Lang load($langfile[, $idiom = ''[, $return = FALSE[, $add_suffix = TRUE[, $alt_path = '']]]]) Parameters: $langfile (mixed) – Language file to load or array with multiple files $idiom (string) – Language name (i.e. ‘english’) $return (bool) – Whether to return the loaded array of translations $add_suffix (bool) – Whether to add the ‘_lang’ suffix to the language file name $alt_path (string) – An alternative path to look in for the language file Returns: Array of language