V
V
Victor Umansky2017-05-16 10:42:25
Yii
Victor Umansky, 2017-05-16 10:42:25

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

1 answer(s)
M
Maxim Timofeev, 2017-05-16
@Uman

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 question

Ask a Question

731 491 924 answers to any question