Hi again,

i've changed my email validator this way:

class sfGuardUserFormFilter extends PluginsfGuardUserFormFilter
{
  public function configure()
  {

  //Widgets para el filtro de los perfiles
  $this->widgetSchema['nombre_apellidos'] = new
sfWidgetFormFilterInput
(array(
      'with_empty' => false
  ));

  $this->widgetSchema['email'] = new sfWidgetFormFilterInput(array(
      'with_empty' => false
  ));


  // Validadores
  $this->validatorSchema['nombre_apellidos'] = new sfValidatorPass
(array(
      'required' => false

$this->validatorSchema['email'] = new sfValidatorSchemaFilter('email',
new
sfValidatorEmail(), array('required' => false));

}

Is that right..?

In that way, above the email widget appears the error message in red
"email: Required"...

Javi

On Oct 23, 12:02 am, Alexandre SALOME <[email protected]>
wrote:
> It works with string.
>
> So if you give it an array, it will not works.
>
> 2009/10/21 tirengarfio <[email protected]>
>
>
>
> > On Oct 21, 1:22 pm, Alexandre SALOME <[email protected]>
> > wrote:
>
> > > And sfValidatorEmail excepts a string.
>
> > Thanks Alexandre, but... what do you mean with that sentence? Sorry
> > because my english..
>
> --
> Alexandre Salomé -- [email protected]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to