Welcome Guest, Not a member yet? Register   Sign In
load a lang file into an array
#5

I just noticed something, you can pass more than two arguments when loading a language file

If you pass TRUE as the third argument, the loaded array is returned. So you don't need to use that loop you created.

PHP Code:
$your_language_array $this->lang->load('some_file_lang','english'TRUE); 

$your_language_array should be populated with the key=>value pairs of the loaded language file
Reply


Messages In This Thread
load a lang file into an array - by muuucho - 03-28-2017, 09:24 AM
RE: load a lang file into an array - by muuucho - 04-04-2017, 01:21 AM
RE: load a lang file into an array - by muuucho - 04-04-2017, 09:11 AM
RE: load a lang file into an array - by Martin7483 - 04-05-2017, 02:35 AM
RE: load a lang file into an array - by muuucho - 04-06-2017, 05:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB