Like you stated, I am saving the data to both the users table and the cake-defined sessions table. You pretty much hit on exactly what I am doing, and the majority of the code I want to extract from the users controller is the merge cart functionality. The reason I merge the cart is because I take into account that users who are not logged in can also maintain a cart. So when a user logs in, I merge any existing cart with any cart from the users table. Just a nice little feature I suppose.
You suggested moving the code to Users::mergeCart() (which is what I really want to handle) but I my design concern is that merging the carts requires knowing what is contained in the internal saved cart arrays (I don't do a simple array_merge). So I just get this feeling in my gut that only the Carts controller should know this information, but at the moment I'm willing to suffer what I feel is poor design to save the performance overhead of using another approach. But I just wish there was a better way... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
