Welcome Guest, Not a member yet? Register   Sign In
Placeholders in language lines
#1

How to use placeholders in 
$this->lang->line('misc_key', FALSE);

It is used in standard libraries  (e.g. from validation), but how to use it in my own libs and models?

Code:
echo sprintf($this->lang->line('somekey'),'XYZ');//load language library before use
Is this the best way?
Reply


Messages In This Thread
Placeholders in language lines - by glorsh66 - 06-10-2018, 12:00 AM
RE: Placeholders in language lines - by InsiteFX - 06-10-2018, 04:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB