rules multiple uploads |
(01-12-2020, 07:42 AM)littlej Wrote: Validation of arrays with "ordinary data fields": https://codeigniter4.github.io/userguide...are-arraysYes, thanks, I read it. Here, just show me how to check for int data such data from the form: Code: <input name="id_cat[]" /> PHP Code: $this->validate([ PHP Code: /** There will be an error, because the method waits for the string, and the array arrives ... Error: Argument 1 passed to CodeIgniter\\Validation\\FormatRules::numeric() must be of the type string or null, array given, called in D:\\OpenServer\\OSPanel\\domains\\ci4.ru\\system\\Validation\\Validation.php on line 279 |
Welcome Guest, Not a member yet? Register Sign In |