Modify multiple fields in form - CI4 |
I had come back to write that I managed to understand and solve, I came across this: https://codeigniter4.github.io/userguide...ating-data and I found out that you had already written code. Thanks a lot anyway for the support.
So is it alright? Without the braces? Is it a correct syntax? 'category_name' => ['label' => 'Category Name', 'rules' => 'required|min_length[3]|max_length[150]|is_unique[categories.category_name,id,'.$id.']'],
(04-14-2020, 09:52 AM)Marcolino92 Wrote: So is it alright? Without the braces? Is it a correct syntax? Yes, you can concatenate the variable to the string with dots like you did. The braces is just standard php string parsing.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Welcome Guest, Not a member yet? Register Sign In |