Answer the question
In order to leave comments, you need to log in
How in Symfony 1.4 in the post-validator compare 2 groups of checkboxes?
Hey habr!
There is a task to check the form according to the criteria: if a check is checked in the main group, and a similar check is not checked in the all group, an error occurs. On the contrary, it is possible.
Tell me how to implement this?
Answer the question
In order to leave comments, you need to log in
In general, I decided, if someone needs it, then here:
There is such a good and often used sfValidatorSchemaCompare validator, and so - it did not fit for comparing arrays. We create our own validator - we compare arrays of groups of checks.
If you need a listing with the code - here
Inori , thanks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question