I am rebuilding an application from scratch while attempting to keep all of the pre-existing data (around 100,000 users). In the current application, it has 4 tables:
affiliates administrators administrators_permissions users On the front-end of the site, it has what you might expect: Affiliates can log in to the affiliate area and get banner link code and see their conversion rates. Users can log in to place an order and view their past orders. And administrators can log in to the backend area to manage the site. So my question is: How do I convert this into a Cake app? I've got the app 99% built at this point. All of the non-user specific things are completed and work fine. I have purposefully been avoiding the auth of the app this whole time because I wasn't sure how to move forward with it. Do I keep the user tables separate as they currently are? This would mean that I would have an affiliates table, and then aro/aco for the administrators (Since they all have fine-grained permissions), and a user's table. Or do I try to combine the 3 current users tables into one huge aro/ aco setup in cake? My only concern with that is how do I separate the registrations for the users and the affiliates? IE, what if a user is already signed up and logged in on the site and decide they want to become an affiliate? Or should I merge the users and affiliates roles and allow every registered user to be an affiliate? I guess I'm just looking for advice here. How would you go about setting this up? If I were coding this from scratch, I'd likely leave the tables as they currently are. But I'm not sure how difficult that would be in Cake. Any advice is appreciated. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
