Hi, I prepare app with lot of fields in tables 'user_id'. I use Auth component, and my question is: How I can automatic add value to 'user_id' from Auth->user('id).
My first try was setting $this->data[$this->modelClass']['user_id'] = 4this->Auth->user('id'); but when I use $this->data in App_Controller my Add action automated works... I looking-for very simple adding value to user_id... Bye! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---