Welcome Guest, Not a member yet? Register   Sign In
setting the $field variable in a custom callback
#7

[eluser]Bramme[/eluser]
I'd like to figure out the CI validation before writing my own :p

Shit got weirder: I was adding debug log messages to see what happened where. When I add a log message in my callback _file_selected in my controller, I see it in the logs.

For testing purposes, I added a "matches[field]" rule to some other inputs and added a log_message('debug', 'matching tested') to the function matches() in the Form_validation library. Nothing showed up.

Apparently, that's because it first checks the required rule, if that isn't matched, it just skips all the others. Which makes sense.


Messages In This Thread
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 03:45 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 06:29 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 07:51 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 08:47 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 09:07 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 09:21 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 09:29 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 09:42 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 09:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB