I saw this before, but since I'm on 1.1. It didn't work for me. Also there's the language barrier.
I have a general question though: For a Model that has no table: does populating the $validate array automatically populate $this->data in the controller? Or is that only done when the form returns? I'm a bit unclear here. Since there's not ->read() or ->findAll(), how do we know that there is a $this->data['Contact']['email']? ThanX in advance. -- Baz L Day In The Life of Baz http://www.LifeOfBaz.com/ On 7/27/07, cakeFreak <[EMAIL PROTECTED]> wrote: > > > This is the view; > > > ---------------------------------------------------------------------------------------- > VIEW: views/contacts/index.ctp > > ---------------------------------------------------------------------------------------- > > <h1>Contacts:</h1> > > <?php echo $form->create('Contact', array('url'=>'/contacts'));?> > <?php > > echo $form->input('nome', array('error' => array( > 'required' => 'specifica il > tuo nome') > ) > ); > > echo $form->input('cognome', array('error' => array( > 'required' => 'specifica il > tuo cognome') > ) > ); > > echo $form->input('e-mail', array('error' => array( > 'required' => 'specifica la > tua e-mail', > 'validEmail' => 'inserisci un > e-mail valida' > ) > ) > ); > echo $form->input('oggetto', array('error' => array( > 'required' => 'specifica l > \'oggetto') > ) > ); > > echo $form->input('messaggio', array('error' => > array('required' => > 'inserisci il messaggio'), > 'type'=>'textarea', > 'cols'=>30)); > ?> > <div class="submit"><input type="submit" value="invia" /></div> > </form> > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
