[eluser]boltsabre[/eluser]
Okay, looks like no-one really has a clue on this. That's okay, I'll keep at it tonight when I get home from work.
However, if someone could do a little test for me to help isolate the problem I'd be extremely grateful!!!
In System/libraries/Form_validation.php, line 584, can someone test this (from a controller/form that has a callback function)
Code:
// Call the function that corresponds to the rule
if ($callback === TRUE)
{
var_dump($rule), //works, prints 'phone_and_email_required'
var_dump(method_exists($this->CI, $rule)); //prints bool(false), but it should be true!!!
if ( ! method_exists($this->CI, $rule))
{
continue;
}
var_dump('still here'); // nothing, because the above check failed, executing the 'continue' statement.
I'm interested specifically in this line of code:
Code:
var_dump(method_exists($this->CI, $rule)); //prints bool(false), but it should be true!!!
And want to know if you get a bool(true) or bool(false). If you get true, then I think I know what the problem is (I've got some core library extensions that allow for controllers to have dash(-) instead of underscores(_) in the url, I think it might be re-writing my callback function name as "callback-some-function" thus failing the "method_exists" check).
But yeah, if someone could test this for me on one of their CI websites I'd be very grateful, many many many thanks in advance!