A
A
alex-melodiev2017-08-11 17:20:49
Yii
alex-melodiev, 2017-08-11 17:20:49

How to assemble one from several models in yii2?

I make a table like in a school magazine.
There are models:
Student
StudentClass
Lesson
LessonData
Student contains a class_id link
Lesson contains a class_id link
LessonData contains a lesson_id link and a Mark field (grade)
You need to assemble a table in the form joxi.ru/eAON1l4H46e472 . Not even a table, but an Editable GridView - https://github.com/kartik-v/yii2-grid
I don't know how to approach, in which direction to dig.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-08-11
@webinar

Take one main one and attach others to it through join

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question