• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make Multilingual website in CodeIgniter 3

#1
How to make Multilingual website in CodeIgniter 3?
Reply

#2
Am new to CI but just did a multilinqual app using cookies. just create your language files and call them from controller then echo them in your views.
Reply

#3
The main thing to remember is that, whether you use a user setting or URI to indicate the current language, you can set the configured language (as early as possible), then all later calls to load language files will load the file for that language.

PHP Code:
$this->config->set_item('language'$this->current_language);

// load the file /application/language/{$this->current_language}/application_lang.php
$this->lang->load('application'); 
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.