1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
5 * An open source application development framework for PHP 5.1.6 or newer
8 * @author ExpressionEngine Dev Team
9 * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
10 * @license http://codeigniter.com/user_guide/license.html
11 * @link http://codeigniter.com
16 // ------------------------------------------------------------------------
19 * CodeIgniter Language Helpers
21 * @package CodeIgniter
24 * @author ExpressionEngine Dev Team
25 * @link http://codeigniter.com/user_guide/helpers/language_helper.html
28 // ------------------------------------------------------------------------
33 * Fetches a language variable and optionally outputs a form label
36 * @param string the language line
37 * @param string the id of the form element
40 if ( ! function_exists('lang'))
42 function lang($line, $id = '')
44 $CI =& get_instance();
45 $line = $CI->lang->line($line);
49 $line = '<label for="'.$id.'">'.$line."</label>";
56 // ------------------------------------------------------------------------
57 /* End of file language_helper.php */
58 /* Location: ./system/helpers/language_helper.php */