But each Product, User, Manufacturer, Bid, Etc, hasMany Notes... On Jan 7, 8:29 pm, aranworld <[EMAIL PROTECTED]> wrote: > I think you will find that the system is more maintainable if you > simply add a notes column to the Products, Manufacturers and Users > tables. > > On Jan 7, 7:53 pm, brian_gaff <[EMAIL PROTECTED]> wrote: > > > Hi, > > I have a website that is basically a shopping cart. It has Products, > > Manufactures, Users, etc. > > > I've added a 'Notes' controller with the following fields: > > id > > user_id > > product_id > > manufacturer_id > > text > > > The idea is that I can set the respective foreign key so that I can > > use the notes controller to add notes to any object. Is this the > > correct way to do it? > > > My next question is, I want to automatically add a note when an > > administrator does certain tasks, eg, modify a user account. > > > I was thinking about using the $controller->requestAction(), however, > > if the note is fairly long it will be kind of weird to do this: > > > /* this is just psuedo code, I do not actually store session > > information like this */ > > > $ses = $this->Session->read('currentUser'); > > $note = "User account was suspended by {$ses['User']['username']}"; > > $this->requestAction('/admin/notes/add/' . $note); > > > It would seem weird to request an action with spaced text like that. > > Is there another way to do it, i guess what I'm asking is... > > requestAction is like GET, is there another way that's similiar to a > > POST. Is it safe to do what I want to do this way?
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---