A
A
Alex Mirgorodskiy2018-02-27 21:47:33
Yii
Alex Mirgorodskiy, 2018-02-27 21:47:33

What is the best way to make an admin panel on landing-page?

Hi colleagues) I'm wondering how best to make an admin panel.
There is a Landing-page which has grown into a small site on yii2. I want to make the site owner something like an admin, I usually did it with a module, but then an idea came up, but what if I make a couple of
If(user->can('admin')) buttons right on the site or even just check for guest, and based on results will display a button add style, or add news. To what extent is this correct (or incorrect) from the point of view of the architecture of the site structure? Never tried it just...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2018-02-27
@AlexWeb6667

Maybe why not

A
Alexey, 2018-02-27
@AlexMaxTM

Check out SkeekS CMS written in Yii2. Since such an approach has been implemented. You can pull out the necessary pieces of code from there and paste them into your project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question