コントローラーに機能があります
function test() {
$data['lang'] = read_file(APPPATH . "language/bahasa/english.php");
$this->load->view('test', $data);
}
英語.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$lang['content.home'] = 'Home';
$lang['content.about_us'] = 'About Us';
$lang['content.team'] = 'Team';
$lang['content.contact'] = 'Contact us';
ビューで $lang['content.home'] = 'home' のデータを取得する方法