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

[eluser]Yash[/eluser]
excellent work xwero!!

really nice thread!!
#42

[eluser]xwero[/eluser]
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.
Code:
$lang['time_is'] = "The time is : %s"; // language file
echo sprintf(lang('time_is'),$time); // view file




Theme © iAndrew 2016 - Forum software by © MyBB