Of course:
if ($this->Model->create($this->data) && $this-Model->validates())
{
// Validates, so let's save
$this->Model->save();
}
-MI
---------------------------------------------------------------------------
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de Chris Hartjes
Enviado el: Martes, 13 de Marzo de 2007 10:43 a.m.
Para: [email protected]
Asunto: Re: Confirmation after form validation
Well, I'm saying this without actually having done it, but I'm pretty
sure you can get it to validate your input *without* saving the
record. Any examples from the list?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---