validateData string error message |
In the controller, use
PHP Code: $this->validateData($data, 'account' => 'required|string|max_length[64]|min_length[3]'); may i something wrong?! PHP Version: 8.3.9 CI Version: 4.5.3
Works. Check https://codeigniter4.github.io/userguide...rict-rules
PHP Code: $data = ['account' => 123]; Code: array:1 [▼ (07-07-2024, 09:14 PM)yehchge Wrote: In the controller, use The 'account' => 'required|string|max_length[64]|min_length[3]' should inside an array bracket []. so, it's like @ozornick php code. Code: $this->validateData($data, ['account' => 'required|string|max_length[64]|min_length[3]']); |
Welcome Guest, Not a member yet? Register Sign In |