CodeIgniter User Guide Version 2.2.6 |
Table of Contents Page |
CodeIgniter Home › User Guide Home › Language Helper |
The Language Helper file contains functions that assist in working with language files.
This helper is loaded using the following code:
$this->load->helper('language');
The following functions are available:
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>
Previous Topic: Date Helper · Top of Page · User Guide Home · Next Topic: Download Helper
CodeIgniter · Copyright © 2006 - 2014 · EllisLab, Inc. · Copyright © 2014 - 2015 · British Columbia Institute of Technology