Answer the question
In order to leave comments, you need to log in
Yii2 How to handle dynamic fields in a model?
There are obynchchy fields that belong to the same model. And there are also fields that are added dynamically, they need to be written to another model.
How to write them correctly, what to specify in the rules?
What if there are 2 fields, for example 2 text inputs?
Answer the question
In order to leave comments, you need to log in
In one model, some fields are validated, in another, others. And it is worth writing them not in the model, but in the database using the model.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question