V
V
Vlad2019-12-13 16:25:28
Yii
Vlad, 2019-12-13 16:25:28

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

1 answer(s)
I
irishmann, 2019-12-13
@SettLe1337

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 question

Ask a Question

731 491 924 answers to any question