Well then if you have the id, you can do :

$this->Cm->set(array('id' => $this->params['data']['id']));
$this->Cm->saveField($this->params['data']['field'], $value);

That should work, it's the way I do some update on specific field..

Good luck

On Dec 5, 8:56 pm, "das88" <[EMAIL PROTECTED]> wrote:
> Thanks for the reply. I do want to only change one field.
>
> I forgot in my example, I had
> $this->Cm->id = $this->params['form']['id'];
>
> I was able to get it to work using query, such as
> $sql='update `' . $this->Session->read('dataset_id') .
>             '` set ' .  $this->params['form']['field'] . '="' .
> $this->params['form']['value'] .
>             '" where id=' . $this->params['form']['id'];
> $ret = $this->Cm->query($sql);
> 
> That doesn't really seem, though, like the cake way to go about it.


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to