Callbacks and array ? |
[eluser]quasiperfect[/eluser]
i use the latest https://github.com/EllisLab/CodeIgniter i have in the controller Code: $this->load->library('form_validation'); $this->form_validation->set_rules('myarray[]', 'myarray', 'callback__myarray_check'); Code: function _myarray_check($str) { in the view Code: <form method="post" action="welcome/"> on submit i get 1|2| so the callback is called for each value of the array is this intended ? is a bug ? to me more logical would be to get the array as parameter and to execute the callback once edit if nothing is selected the callback is not even called |
Welcome Guest, Not a member yet? Register Sign In |