Unable to access an error message corresponding to your field name

前端 未结 5 812
情书的邮戳
情书的邮戳 2020-12-29 23:37

I have a callback function that check_captcha which sees if $row is ==0 or == 1 (this information is queried from sql).

The p

5条回答
  •  清酒与你
    2020-12-30 00:04

    $this->form_validation->set_message('check_captcha', 'text dont match captcha');
    

    The message name corresponds to the function, not the field. So setting it to "check_captcha" will fix your bug. The error message will use the correct field name.

提交回复
热议问题