dongliao2011 2017-06-28 01:30
浏览 28

在codeigniter 3.1.3中使用WiredDesignz的HMVC时,使用回调验证规则时,本机验证规则不会运行?

I recently noticed this weird bug in CI(3.1.3 but might as well be present in other versions). The navtive validation rules like required, valid_email etc don't run while I use the callback. I've already built a My_Form_validation library to make the callback validation rules work with HMVC. But that seems to create another bug in the form_validation library. For eg. I've the following validation rules setup:

    $this->form_validation->set_rules('email', "Email",'required|valid_email|callback__validate_credentials|callback__check_user_status');

The validation rules should be run in the order they are stated, but the validation rules goes straight to validating the callbacks without checking the "required" and "valid_email" rules. These native validation rules run as they should if I remove the callbacks. Has anybody found a fix around this? Thanx in advance.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器