• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call Back Function Issue

I just found out my naming for callback wasn't good.

I changed from "callback_check_email" to "callback_email_check", then suddenly working fine :lol:

The only way I could fix this is to auto load it the form_validation globally too. Is this a bug in form_validation??

[eluser]Tim Reynolds[/eluser]
I have the same issue. I have my form_validation set globally but it has made no difference.

I had the same problem. Found if I load the class 'form_validation' in the constructor then $this->_error_messages goes out of scope and is not available when required by $this->_execute(). If I load the class in the function thats actually doing the work then it goes into scope. However after reading this thread I loaded the class in the autoload array and it does seem to put _error_messages in scope. Strange.

I faced the same issue... loading form_validation globally (inside a constructor) broke the custom
validation. It seems that the problem only lies with PHP4 versions (works with PHP5)..

Anyways Thanks for the help..

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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