H
H
happ2017-07-15 23:43:17
Yii
happ, 2017-07-15 23:43:17

How to organize the administrative part of the site in Yii2?

1. The advanced template has sections: frontend, backend. As I understand it, it is better to use the backend part for the admin panel, or some other solution?
2. How to access the backend/controllers controller from the browser?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Decadal, 2017-07-15
@happ

1. The advanced template has sections: frontend, backend. As I understand it, it is better to use the backend part for the admin panel, or some other solution?

Depends on the scope of your project. Not every admin panel should be pushed into advanced-backend, you have the opportunity to make the admin panel a separate module.
as well as frontend/controllers. Via backend/web/index.php. For the advanced template, you make two server configurations, and that's the difference.

M
Maxim Timofeev, 2017-07-16
@webinar

How to access the backend/controllers controller from the browser

It depends on the server settings, I usually hang up the admin panel on a subdomain, so I access subdomain.domain.com, then the path depends on the manager's url settings.
Out of the box and without a subdomain and with default rules, this is the domain.com/backend/web/module/controller/action
Anyway, there is no difference at all, you can create another 20 app.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question