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 is set to TRUE, otherwise void

Return type:

mixed

Loads a language file.

doc_CodeIgniter
2016-10-15 16:31:42
Comments
Leave a Comment

Please login to continue.