A
A
Anton Karmazin2012-07-31 14:35:00
symfony
Anton Karmazin, 2012-07-31 14:35:00

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.

image

Tell me how to implement this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Karmazin, 2012-08-01
@kriptomen

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 question

Ask a Question

731 491 924 answers to any question