Revision #30                                    has been created by  Rodrigo                                    on Oct 31, 2013, 2:13:32 AM with the memo:
 Rodrigo                                    on Oct 31, 2013, 2:13:32 AM with the memo:
                                
                                
                                    Validation rules issues when using model's attribute as additional parameters                                
                                                                    « previous (#29)                                                                                            
                            Changes
                            
    Title
    unchanged
    Reference: Model rules validation
    Category
    unchanged
    How-tos
    Yii version
    unchanged
    
    Tags
    unchanged
    Form validation, model, validation, reference, validation rules, validator
    Content
    changed
    [...]
If this option is not set, the rule will be applied in any scenario.
  See the section [Scenarios][#Scenarios] for details.
+ *message*: replaces the default error message if validation fails.
+ *...validation parameters...*: any number of extra parameters to be used by the specified validator.
**Note**: You may get into trouble when using model's attributes as additional parameters for validators. Take a look at: [https://github.com/yiisoft/yii/issues/3001](https://github.com/yiisoft/yii/issues/3001 "https://github.com/yiisoft/yii/issues/3001")
 
### Choice of validators[...]
through the `"on" => "scenario"` parameter.
 
For each rule, the list of its specific arguments is given with the eventual default value *(in italics)*.
### `boolean` : [CBooleanValidator]
Validates that the attribute value is either trueValue or falseValue.[...]