Loading language files

#1
[eluser]K-Fella[/eluser]
How come you can't load multiple language files using an array?
Code:
$this->lang->load(array('user', 'page'));

By the way, I think loading language files should be done using:
Code:
$this->load->language();

This (to me anyway) is more in keeping with the coding practices of CI.

#2
[eluser]danmontgomery[/eluser]
Code:
$this->load->language('user');
// or
$this->load->language(array('user','page'));

#3
[eluser]K-Fella[/eluser]
I never knew you could write it like that. I guess because nothing is mentioned in the user guide Smile

#4
[eluser]danmontgomery[/eluser]
http://ellislab.com/codeigniter/user-gui...oader.html

Quote:$this->load->lang('file_name')

This function is an alias of the language loading function: $this->lang->load()


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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