the_woodsman wrote:
> Have you seen the validates() method of the Model class?
> Model::validates      (       $        data = array()          )
> Returns true if all fields pass validation, otherwise false.
> Parameters:
>       array   $data POST data
> http://api.cakephp.org/class_model.html#16c08a6787a40c74393c28f048ae2f31

The $data parameter is deprecated in 1.2. See:

http://cakebaker.42dh.com/2007/01/06/parameter-for-modelvalidates-is-now-deprecated/

Nate's recomendation is:

if ($this->User->create($this->data) && $this->User->validates()) {
// Oh happy day
}


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