Welcome Guest, Not a member yet? Register   Sign In
Form Validation - returns "(Anonymous function)"
#4

(This post was last modified: 03-14-2018, 01:44 AM by sintakonte.)

i dont understand what you mean @ciadmin 

but nevertheless i solved the problem and it whas on my side

i needed to wrap the rule to an additional array
after that it worked fine (i just thought i don't need it because i do only have one rule)

so the solution was

PHP Code:
$this->arrValidationRules[] = array(
    
'field' => 'personid',
    
'label' => 'Duplicatecheck',
    
'rules' => array(array('check_duplicates', array($this->ci()->Cppersonsave_model,'duplicatesCheck')))
); 
But on the other hand the line 687 of the form_validation Library doesn't make any sense to me
Reply


Messages In This Thread
RE: Form Validation - returns "(Anonymous function)" - by sintakonte - 03-14-2018, 01:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB