Tuesday, October 23, 2012

Re: CakePHP 2.x how to manage multiple user-tables and access areas?

Actually you only need one table with the following fields:

username or email
password
group
+ additional fields that might be useful for your application

After login (with AuthComponent) you can check to which group the user belongs. Depending on the group you can redirect the user to the correct area.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: