R
R
Rustam Idrisov2016-08-26 02:08:55
Yii
Rustam Idrisov, 2016-08-26 02:08:55

How to work with the same model in backend and frontend in Yii2 advanced template?

There is a table in the database "students".
The "Students" model was created from this table.
On the user side, there is a form that the student fills out and it must be added with a new row in the database, and then the entire table is displayed in the admin panel (backend).
I can’t figure out how to correctly implement adding to the database on the user side (frontend), and on the admin side (backend) display all the data from the database table.
Please, help

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
holfza, 2016-08-26
@RustaMechanic

First link on google: stackoverflow.com/questions/28897590/how-to-use-a-...

B
Boris Yakushev, 2016-08-26
@za4me

A little offtopic.
One model on the frontend and backend can be made, but the controller and view cannot be made common.
I was just wondering about this yesterday :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question