Hello all. I developed a project based on the CakePHP. But I am
confronted with problem:
 1) an action for updating databese records in a table exists
 2) for building view, get an ID from request, then do aDataArray =
model->findById(ID), pass the array into View. All ok.
 3) do some changes (new text etc.) -> send POST data to the controller
action, then do
model->setId(ID)
model->update(DATA_FROM_POST)
4) in order to get changed record, do aDataArray = model->findById(ID)
again and pass the array into View.
And now we have the next:
 - in the database the record is changed
 - in aDataArray the OLD data are holded, in spite of the fact that
findById was called after update.
I am totally discouraged. 
Please help to solve!


--~--~---------~--~----~------------~-------~--~----~
 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