Ok so i am making a website where one can monitor energy usage for
there home (or homes)
The database design is as such:
Users have many homes. Homes have many rooms.. Rooms have many
appliances.
Now the main view for the users shows all of this at once. Now what i
want to do is create the forms for adding/editing rooms, and adding
editing appliances.
The main view is in users/index and shows all the various
information.  I may create more detailed specific views for each item
but that will come later. Should my add/edit forms be made in the say
rooms/edit or appliances/edit, or should i add an action to the users
controller like users/appliance_edit. Obviously my users controller
will get bloated like this but at the same time i'm going to have to
make sure that the user is editing an allowed appliance or room. I
suppose i just manually query when an edit of room or appliance occurs
to make sure that the current user is the owner before an update
right?
What do you guys usually do in these situations.?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to