언어(lang) Sample

<?php
/**
 * Language Class
 *
 * Created on 2011. 11. 16.
 * @author 불의회상 <hoksi2k@hanmail.net>
 * @package library
 * @subpackage controllers
 * @version 1.0
 */
class Language_lib extends CI_Controller {
	function __construct() {
		parent::__construct();
	}
	
	function index() {
		$this->lang->load('calendar', 'english');
		
		$data = array('mon' => $this->lang->line('cal_sunday'));
		
		$this->load->view('language_lib_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>$this->lang->line('cal_sunday')</td>
	<td><?php echo $mon?></td>
</tr>

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

© Copyright by hoksi(Page rendered in 0.0219 seconds)