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/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: i can only use one "label file" in ~/language/english/ directory (/showthread.php?tid=64935)



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