Well, I finally figured out my problem. You told me to $this->Model-
>set($this->data), but I missed off the model. What a maroon!!! I just
upgraded my IDE and was stepping through the code. I couldn't figure
out how the model got the data from the controller. Now I do. Anyway,
I asked before about validation without saving, but you were the first
to tell me I needed to call Model->set(). I see that Model->save()
calls set, but Model->validates() doesn't (which is undoubtedly why
you told me to do so). It seems that most of the more experienced here
are using 1.2. I wonder how much my code will have to change with the
newer code? Earlier suggestions I received told me to do if($this-
>Model->create($this->data) && $this->Model->validates()), but in 1.1,
$this->Model->creates() doesn't take any parameters and unsets it's
data array, while $this->Model->validates() requires the data array to
be set. I suppose I'll have to call $this->Model->set($this->data)
between the two calls (or modify create to take and use a parameter).
If anyone could suggest where I might want to leave some comments in
my code for future changes, I would be most appreciative.

Thank you very much again,

2z


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