CodeIgniter Forums
[Solved] Form Validation Problems - 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: [Solved] Form Validation Problems (/showthread.php?tid=21434)



[Solved] Form Validation Problems - El Forum - 08-10-2009

[eluser]CoolGoose[/eluser]
I'm trying to make the new form validation use a custom callback function for checking the user and for some reason I can't get it to work.

Here are my controller and my form_validation config file.

Also is there a way to access a function prefixed with _ on the callback ?

Thanks.


[Solved] Form Validation Problems - El Forum - 08-10-2009

[eluser]davidbehler[/eluser]
1. In your config file you defined
Code:
callback_username_check
try
Code:
callback_check_username
instead, as that's the name of your function in your controller

2. Simply use
Code:
callback__check_username
and name your function
Code:
_check_username

That should work


[Solved] Form Validation Problems - El Forum - 08-10-2009

[eluser]CoolGoose[/eluser]
I also have username_check as per the tutorial and I also tried callback__check_username without success Sad


[Solved] Form Validation Problems - El Forum - 08-11-2009

[eluser]CoolGoose[/eluser]
Bump Bump ? Does anyone have any ideas ?


[Solved] Form Validation Problems - El Forum - 08-12-2009

[eluser]CoolGoose[/eluser]
Found the culprit. It was modular extensions.