Development

Changeset 10173

You must first sign up to be able to contribute.

Changeset 10173

Show
Ignore:
Timestamp:
07/07/08 18:55:04 (2 months ago)
Author:
fabien
Message:

doc: fixed typo (closes #3914)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doc/branches/1.2/forms_book/en/02-Form-Validation.txt

    r10100 r10173  
    258258![Too short Message Error](/images/forms_book/en/02_06.png "Too short Message Error") 
    259259 
    260 The default error message related to this error code (`min_length`) is different from the messages we already went over, since it implements two dynamic values: the user input data (`foo`) and the minimum number of characters allowed for this field (`4`). Listing 2-5 customizes this message using theses dynamic values and Figure 2-8 shows the result. 
     260The default error message related to this error code (`min_length`) is different from the messages we already went over, since it implements two dynamic values: the user input data (`foo`) and the minimum number of characters allowed for this field (`4`). Listing 2-5 customizes this message using theses dynamic values and Figure 2-7 shows the result. 
    261261 
    262262Listing 2-5 - Customizing the Error Messages with Dynamic Values 
     
    272272          'name'    => new sfValidatorString(array('required' => false)), 
    273273          'email'   => new sfValidatorEmail(array(), array('invalid' => 'Email address is invalid.')), 
    274           'subject' => new sfValidatorChoice(array('choices' => array_keys($subjects))), 
     274          'subject' => new sfValidatorChoice(array('choices' => array_keys(self::$subjects))), 
    275275          'message' => new sfValidatorString(array('min_length' => 4), array( 
    276276            'required'   => 'The message field is required', 
  • doc/branches/1.2/forms_book/fr/02-Form-Validation.txt

    r10100 r10173  
    272272          'name'    => new sfValidatorString(array('required' => false)), 
    273273          'email'   => new sfValidatorEmail(array(), array('invalid' => 'L\'adresse email est invalide.')), 
    274           'subject' => new sfValidatorChoice(array('choices' => array_keys($subjects))), 
     274          'subject' => new sfValidatorChoice(array('choices' => array_keys(self::$subjects))), 
    275275          'message' => new sfValidatorString(array('min_length' => 4), array( 
    276276            'required'   => 'Le champ message est obligatoire.',