Am I doing this wrong, or is there a bug in the CodeIgniter Form Validation library when using arrays as field names?

前端 未结 1 1356
刺人心
刺人心 2021-01-13 08:31

Here\'s my controller code to configure the rules:

// Previous address(es)         
$this->form_validation->set_rules(\'prev_house_number[]\',    \'Hou         


        
相关标签:
1条回答
  • 2021-01-13 09:05

    It looks like this is the commit that Phil is talking about: https://github.com/EllisLab/CodeIgniter/commit/5c561805bd9ae6a4ad5d202277c34a879617b683#system/libraries/Form_validation.php

    Try pulling the code from the develop branch for the form validation library and see if it takes care of the issue.

    0 讨论(0)
提交回复
热议问题