PHP Good practice using multi-level authorization of PHP users.

Given that the site’s site has different web pages that only a group of users can access. Talking to guest users can only access the welcome / search page, while user users can access pages that update the database, etc.

I have little experience in this area and I would like to accept some recommendations with a clean / simple / safe implementation.

If possible, I would like to see some specific examples / tutorials, even a book resource.

thanks for the help

+3
source share
2 answers

, , (Wordpress, Joomla ), (, , ).

, MVC, Zend Framework, CakePHP, Symfony. MVC , , , , , .

, , , ( ) , . . , , . , ( MVC - ). : groupID, Class, Method, Permission, . , , , , .

+3

/-. , , , , . : , .

.

. , . , - ..

, . , ..

http://en.wikipedia.org/wiki/Role-based_access_control

, . , . : user.department.list= , (). , () . user.user.list, user.user.edit, user.department.list, user.department.edit. ( , ) , . () - ?

+3

Source: https://habr.com/ru/post/1757848/


All Articles