php - Separating admin login & member login in CakePHP ACL -
i beginner cakephp acl. have implemented acl component in cakephp project. facing 2 major problem acl. first of table structure.
groups ------ id title created modified users ----- id group_id title status (0 => inactive, 1 => active, 2 => suspended) created modified
my first problem have 2 user groups "admin", "members". how can restrict members login admin panel. since acl using "users" table admin user , member user login.
the second problem how can restrict inactive , suspended user login customize error message account suspended.
admin routing can used separate members login. can done during cake bake process. http://bakery.cakephp.org/articles/nate/2009/07/14/secrets-of-admin-routing
use session flash message show error message based on condition controller. http://book.cakephp.org/2.0/en/core-libraries/components/sessions.html
Comments
Post a Comment