CodeIgniter Forums
[Solved] Form Validation Problems - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: [Solved] Form Validation Problems (/thread-21434.html)



[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.