+
+
+
Language Helper
+
+
The Language Helper file contains functions that assist in working with language files.
+
+
+
Loading this Helper
+
+
This helper is loaded using the following code:
+
$this->load->helper('language');
+
+
The following functions are available:
+
+
lang('language line', 'element id')
+
+
This function returns a line of text from a loaded language file with simplified syntax
+ that may be more desirable for view files than calling $this->lang->line().
+ The optional second parameter will also output a form label for you. Example:
+
+
echo lang('language_key', 'form_item_id');
+// becomes <label for="form_item_id">language_key</label>
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/user_guide/libraries/language.html b/user_guide/libraries/language.html
index b776b7d26..4d93cf9d9 100644
--- a/user_guide/libraries/language.html
+++ b/user_guide/libraries/language.html
@@ -113,12 +113,7 @@ is the language set containing it (ie, english). If the second parameter is mis
If your application requires it, a language line can automatically be output as a <label> by specifying a second parameter, which will become the "for" attribute of the label.
-
-If you find that you need a particular language globally throughout your application, you can tell CodeIgniter to auto-load it during system initialization. This is done by opening the application/config/autoload.php file and adding the language(s) to the autoload array.
--
cgit v1.2.3-24-g4f1b