summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/helpers/language_helper.rst
blob: b7b23d149cd9ebe17cf4d249d4d2b392146a7074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
###############
Language Helper
###############

The Language Helper file contains functions that assist in working with
language files.

.. contents:: Page Contents

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>