Monday, March 30, 2009

Re: Notice (8): Undefined index: id?

On Mon, Mar 30, 2009 at 6:44 PM, Aurelius <aurelius@temporaryinbox.com> wrote:
>
> What does that mean, and where is the problem?
> Notice (8): Undefined index: id [CORE/cake/libs/model/model.php, line
> 1281...on line 77
>
> That's line 77:
> if ($this->User->save ( $this->data, true , array ( 'firstname',
> 'lastname', '....' ))) {
> ... }
>
> What's wrong?

It's hard to say. Maybe you're in an edit action and
your $this->data doesn't contain the desired record id.

Please, tell us more about your scenario.

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

http://mfandrade.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: