Can I load multiple language files for the same view in CodeIgniter?
A:
It would be great to tell how, since it could be a possible need to somebody else too. Answering your own questions is also a great help.
rkj
2010-01-07 08:58:33
A:
ah...
Well it was pretty simple. I just loaded the two files with $this->lang->load().
$this->lang->load("lang_file1"); $this->lang->load("lang_file2");
Then after the view is loaded, I can use strings from the both files. But I'm not sure of the consequences of the same string being in different lang files.
I also saw that you can even load multiple views in CodeIgniter. Just have to load them consecutively and CodeIgniter will merge them into one view.
Chamila
2010-01-08 17:58:33