Aah.. [blush] Guess I have showed the true n00b colors.. Works perfectly..Cake is a nice framework again!
Thank you Richard,Miles,Paul and Google Groups! On Jul 3, 12:22 am, "rich...@home" <[email protected]> wrote: > $this->data['Resource']['ID']=1000; > > should be: > > $this->data['Resource']['id']=1000; > > (Models are CapitalisedNoSpaces, fields are all lowercase_underscore) > > On Jul 3, 6:03 am, sajjan <[email protected]> wrote: > > > > > Thank you Miles! > > > Hmm.. I had tried this and it did not work,but if I put both the lines > > below together it is working. > > > $this->data['Resource']['ID']=1000; > > $this->Resource->id = 1000; > > > If I remove any of these the update fails. > > Thanks so much guys! > > > On Jul 2, 8:39 pm, Miles J <[email protected]> wrote: > > > > $this->Resource->id = 1000; > > > $this->Resource->save() --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
