CodeIgniter Forums
callback with multiple parameters - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: callback with multiple parameters (/showthread.php?tid=40510)



callback with multiple parameters - El Forum - 04-11-2011

[eluser]Blaskunk[/eluser]
Hello world !

I use a callback like that :

callback_test[todo]

in my function :

test($str='',$string='')
{
echo "00$string00";
}

in fact, my function print "0000", so i don't understand why I don't manage to show "00todo00" ...

Need you to work please !!
Have a nice day !


callback with multiple parameters - El Forum - 04-11-2011

[eluser]InsiteFX[/eluser]
Code:
echo "00".$string."00;

InsiteFX


callback with multiple parameters - El Forum - 04-11-2011

[eluser]Blaskunk[/eluser]
it's the same thing...


callback with multiple parameters - El Forum - 04-11-2011

[eluser]InsiteFX[/eluser]
Well you really did not show your callback code!

Show your code so we can help you

Please use code tags!
Code:
// remove ending spaces.

[code ]

[/code ]

InsiteFX