CodeIgniter Forums
i can only use one "label file" in ~/language/english/ directory - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forum-11.html)
+--- Thread: i can only use one "label file" in ~/language/english/ directory (/thread-64935.html)



i can only use one "label file" in ~/language/english/ directory - DontNukeTheClimate - 04-13-2016

I wrote this code :
               <?php echo "lang('account_creation_successful') : ",lang('account_creation_successful');?>
                <br/>
                <?php echo "lang('lp_test') : ",lang('lp_test');?>

The result is displayed correctly for the label 'account_creation_successful'
Nothing is displayed for the label 'lp_test'

The value of 'account_creation_successful' is stored in the file "ion_auth_lang.php"
The value of 'lp_test' is stored in the file "label_perso_lang.php"
Both files are in the ~/language/english/ directory

Is there anything I forgot ?

Thank you for your help


RE: i can only use one &quot;label file&quot; in ~/language/english/ directory - Tecvid - 04-13-2016

have u loaded the language file?
PHP Code:
$this->lang->load('label_perso'); 



RE: i can only use one &quot;label file&quot; in ~/language/english/ directory - DontNukeTheClimate - 04-14-2016

(04-13-2016, 06:32 AM)Tecvid Wrote: have u loaded the language file?
PHP Code:
$this->lang->load('label_perso'); 

No i didn't.
And after loading the language fle, the label is displayed.
Thank you for your help.


RE: i can only use one "label file" in ~/language/english/ directory - Tecvid - 04-14-2016

welcome Smile