Replies: 1 comment 1 reply
-
You can use method "checked" like:
And than in model "Order" you can write function "hasSandwiches" like this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is an issue when loading model data that contains a checkbox array in a form. I know I can do the
in_array
function, but that would be tedious for a couple hundred checkboxes. I looked at the source code and it seems like it only checks the value, rather than also handling multiple/array.Here is an example code:
Beta Was this translation helpful? Give feedback.
All reactions