Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter helpful hints

excellent work xwero!!

really nice thread!!

I remember once there was a discussion whether the language library should have placeholders in the language strings but now with the language helper and the sprintf function you can have placeholders without changing the language library.
$lang['time_is'] = "The time is : %s"; // language file
echo sprintf(lang('time_is'),$time); // view file

Theme © iAndrew 2016 - Forum software by © MyBB