S
S
Stepan2015-02-06 15:02:36
Yii
Stepan, 2015-02-06 15:02:36

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

1 answer(s)
M
Maxim Timofeev, 2015-02-08
@xoma2

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 question

Ask a Question

731 491 924 answers to any question