CodeIgniter Forums

Full Version: Loading language files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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.

El Forum

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

El Forum

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

El Forum

[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()