Reputation: 47
I have displayed data from another table to one table or one model. it looks like this
when I try to update that record, it would be like this
what should I do so that data from image 1 can be displayed in "Update"?
here's my relationship diagram
I display Jurusan
from table aitambah to ais3 and I display NamaMahasiswa
from table ai to ais3. I made table s3penghubung so that table aitambah can be related to ais3.
Upvotes: 0
Views: 79
Reputation: 615
You can reference Yii2 file kit for upload file https://github.com/trntv/yii2-file-kit That include file upload widget, manager file by flysystem
Upvotes: 0
Reputation: 1740
It looks like multiple model handling.. try their solution: http://www.yiiframework.com/doc-2.0/guide-input-multiple-models.html
It should work for your case, with few tweaks.
Upvotes: 2