Development

Changeset 10224

You must first sign up to be able to contribute.

Changeset 10224

Show
Ignore:
Timestamp:
07/11/08 19:15:05 (2 months ago)
Author:
Carl.Vondrick
Message:

1.1 forms book: fixed type-o in example code (closes #3965)

Files:

Legend:

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

    r10171 r10224  
    377377    $this->setValidatorSchema(new sfValidatorSchema(array( 
    378378      'email'   => new sfValidatorEmail(), 
    379       'subject' => new sfValidatorChoice(array('choices' => array_keys($subjects))), 
     379      'subject' => new sfValidatorChoice(array('choices' => array_keys(self::$subjects))), 
    380380      'message' => new sfValidatorString(array('min_length' => 4)), 
    381381    ))); 
     
    408408        $this->setValidators(array( 
    409409          'email'   => new sfValidatorEmail(), 
    410           'subject' => new sfValidatorChoice(array('choices' => array_keys($subjects))), 
     410          'subject' => new sfValidatorChoice(array('choices' => array_keys(self::$subjects))), 
    411411          'message' => new sfValidatorString(array('min_length' => 4)), 
    412412        )); 
     
    435435        $this->setValidators(array( 
    436436          'email'   => new sfValidatorEmail(), 
    437           'subject' => new sfValidatorChoice(array('choices' => array_keys($subjects))), 
     437          'subject' => new sfValidatorChoice(array('choices' => array_keys(self::$subjects))), 
    438438          'message' => new sfValidatorString(array('min_length' => 4)), 
    439439        ));