Answer the question
In order to leave comments, you need to log in
Yii2 how to transfer data to the input from another model to the form?
Hi all.
There are two tables, Profile, where I have the name, phone, city, street, etc., in the other Orders table there is name, phone, city, street.
I'm making an ActiveForm and would like to pull up in the fields where the name, phone, city, street in the input name, phone, city, street, and then it was saved in orders.
I can't figure out how to do this??
Answer the question
In order to leave comments, you need to log in
Either
www.yiiframework.com/doc-2.0/guide-input-multiple-...
Or the usual model inherited from Model, not from AR, but there is a save method that saves the received data, just like the login or contact models made.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question