Answer the question
In order to leave comments, you need to log in
How to implement the function of adding pages to the site by users?
I need to add to the site an interface and functionality for creating and editing articles by users using the yii2 framework. Added pages should go to the "moderation" admin folder without being published on the site initially.
I'm not asking for ready-made solutions, but at least implementation examples or links to detailed information.
Answer the question
In order to leave comments, you need to log in
Well this is a very easy task, we add an attribute of type Boolean "moderated" to the article model. Edit output to include this attribute. We make a form for adding an article, set up access rights. When adding an article by the user, set moderated to false. In the moderator interface, we catch articles where moderated is false.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question