r7599acefll
r7599acefll

Reputation: 47

Creating update in Yii2

I have displayed data from another table to one table or one model. it looks like this

enter image description here when I try to update that record, it would be like this enter image description here

what should I do so that data from image 1 can be displayed in "Update"?

here's my relationship diagram

enter image description here

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

Answers (2)

dungphanxuan
dungphanxuan

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

leninhasda
leninhasda

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

Related Questions