• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Form Validation Problems

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

#2
[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

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

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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.