Greetings and salutations. I'm trying to find the best approach for this.
I've got the following models: User (defines what a user is) Has a Group.id Group Account Department DepartmentMember has a User.id (user_id) has a Department.id (department_id) To add a user (I used bake for this) I go to User/add and add a user (In there I can select which group the User belongs to) Then to associate a User to a Department I go to DepartmentMember/add and select the User, and select the Department. How can I change the process from User/Add and DepartmentMember/add to something that would lump the two processes together. Where I ask for new user information and addition to that select a Department and then when the user hits Save, it happily saves user informaiton to Users table and Department choice to DepartmentMember (user_id, and department_id). I know if I were to do it without cake I could ask for all the needed information create a query to ask for Departments, ask for Groups, and then add the user, get the user's id and then stuff something in to DepartmentMembers. Is this possible right out of the can or do I need to create custom functionality for this? I keep looking at DepartmentMember and think that if I tell its controller to add User, and maybe Group the magic will sort of happen. Am I right in thinking that? Any guidance is greatly appreaciated. Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
