for the controller
-----------------------
by default, $this->data means the (POST)ed data array, so every FORM
field having a name = data[anything here][anything there] will be
handled by $this->data array inside the controller...
otherwise (in case the name of the FORM field is not data[...]), it
willl be handled via $this->params['form']['the name of the FORM
field']

inside the controller, and at any time, you can alter/sanitize do what
ever you want with this POSTed $data array to prepare it for the
model.

NOW, update/modify/save operations inside the model may use the
prepared $this->data or ANY array of the same form

For the model
--------------------
Usually the $data array of the model is accessed/altered inside model
callbacks. but since it is public, you can access it from the
controller scope, but this is not recommended.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to