On Sun, Jul 25, 2010 at 8:30 AM, Tomfox Wiranata <tomfox.wiran...@gmail.com> wrote: > hi, > > this error occurs when i enter the firstname and lastname in a form > and try to update my profile. it is supposed to write this information > in the database. why does this error pops up, although i do have these > two attributes in my table?? > > > my controller: > > function updateProfile() > { > > $updates = $this->User->findByUsername($this->Session- >>read('User.username')); > $updates['User']['firstname']= > $this->data['User']['firstname']; > $updates['User']['lastname']= $this->data['User']['lastname'];
You're assigning the result of the find to $updates but then trying to access it from $this->data. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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