CodeIgniter Forums
validating regular variables - 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: validating regular variables (/showthread.php?tid=20966)



validating regular variables - El Forum - 07-27-2009

[eluser]Unknown[/eluser]
hi there!

is there a helper in code igniter that will validate regular/plain variables?

thanks!


validating regular variables - El Forum - 07-27-2009

[eluser]bretticus[/eluser]
Please be more specific on "validate regular/plain variables"

Thanks


validating regular variables - El Forum - 07-27-2009

[eluser]Unknown[/eluser]
ex:

function my_function($var1) { }

i would to know how to validate $var1 using Code Igniter helper capabilities..
right now I'm validating the variable using my old validation library function..


validating regular variables - El Forum - 07-27-2009

[eluser]bretticus[/eluser]
Still not exactly sure what you are trying to do but I will assume you need to use the callback feature of the validation library. Since you are using an older version, check the appropriate documentation by downloading an older release.