언어(language) Sample

<?php
/**
 * Language helper
 *
 * Created on 2011. 11. 18.
 * @author 불의회상 <hoksi2k@hanmail.net>
 * @package helper
 * @subpackage controllers
 * @version 1.0
 */
class Language_hlp extends CI_Controller {
	function __construct()
	{
		parent::__construct();
		
		$this->load->language('date', 'english');
		$this->load->helper('language');
	}
	
	function index() {
		$data['lang_default'] = lang('UM12');
		$data['lang_label'] = lang('UTC', 'utc');
		
		$this->load->view('language_hlp_sample', $data);
	}
}
<?php $this->load->view('inc/header')?>

<table class="tablesorter" border="0" cellpadding="0" cellspacing="1">
<thead>
<tr>
  <th style="text-align:center" width="20%">구분</th>
  <th width="80%">결과</th>
</tr>
</thead>
<tr>
	<td>lang('UM12')</td>
	<td><?php echo $lang_default?></td>
</tr>
<tr>
	<td>lang('UTC', 'utc')</td>
	<td><xmp><?php echo $lang_label?></xmp></td>
</tr>
</table>

<?php $this->load->view('inc/footer')?>

© Copyright by hoksi(Page rendered in 0.0061 seconds)