Can I load multiple language files for the same view in CodeIgniter?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ah…
Well it was pretty simple. I just loaded the two files with
$this->lang->load().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.