CodeIgniter Forums

Full Version: [Solved] Form Validation Problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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

El Forum

[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

El Forum

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

El Forum

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

El Forum

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