Answer the question
In order to leave comments, you need to log in
How to make the admin panel a Yii module?
Hello everyone, I started to make a site on the PHP Yii framework, before that I made several business card sites on Yii, but there were no serious projects (the site I'm working on now is the first cool project on Yii).
The question is - How to make the admin panel a Yii module? I created an admin module using Gii and added an entry for the new module to the config. But what to do next, I do not understand? Who can advise?
Answer the question
In order to leave comments, you need to log in
Then write controllers and views for admin work with the database and study the topic of access control.
Look at the Gii module (it is part of the framework), you can do it in the likeness.
Imagine, the user has to send data, you create two CRUD one of them in the module. Where for the user, you delete everything related to the admin, in the admin module you display this data for editing and deny access to guests or ordinary users.
This is so, for a start, and then the matter itself will go.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question