Answer the question
In order to leave comments, you need to log in
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
First link on google: stackoverflow.com/questions/28897590/how-to-use-a-...
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 questionAsk a Question
731 491 924 answers to any question