Answer the question
In order to leave comments, you need to log in
How to set validation for a nested parameter array in Yii2?
The crux of the matter is as follows.
There is a complex form where there are input fields with the name of the view:
<input type="text" id="products-resourcesfiles-7-category" class="form-control" name="Products[resourcesFiles][7][category]" tabindex="1">
<input type="file" id="products-resourcesfiles-7-file" class="form-control" name="Products[resourcesFiles][7][file]" tabindex="1">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question