Hello,
> $this->News->id = $previousRecord['id'];
> $this->News->position = $currentRecord['position'];
> $this->News->save();
>
> $this->News->id = $currentRecord['id'];
> $this->News->position = $this->temp['position'];
> $this->News->save();
>
> // $this->Session->setFlash("News został przesunięty!");
> // $this->redirect('index');
I think you'd better use $this->News->saveField() in this case, since
you only update 1 field...
http://book.cakephp.org/view/75/Saving-Your-Data
Pozdrawiam :),
Piotr
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---