Good day. Is the admin box suitable for real projects in general? I am super-mega frills in access rights, etc. Not needed. If so, how can you restrict access to it to unauthorized users? Let's say when requesting (backend) mysite / admin, redirect to the home page of the site (frontend).

  • "Admin out of the box" - what is this? CRUD he is CRUD. - Zhukov Roman
  • Yes CRUD. Or is it impossible to call it an admin? - pbdev pm
  • Yii is not a CMS. There are no admins out of the box. - ilyaplot

1 answer 1

Good day. You can restrict access to crud using the access control filter yii \ filters \ AccessControl

This is the easiest way to block access to crub. But it is impossible to call this a full-fledged admin. It is better to arrange this all with a separate module with restrict access using rbac .

ps Use advanced, in this template there is already a separation between the admin area and the user part.

  • There is just Advanced, there is a frontend and backend, access to the admin method is limited, I cannot delete or add anything without authorization, but the admin panel login itself occurs. Thank you, read. - pbdev 4:27 pm