Difference between #27 and #28 of
Reference: Model rules validation

Revision #28 has been created by acy on Jul 2, 2013, 8:47:59 PM with the memo:

fixed code
« previous (#27) next (#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

[...]
array('username, password', 'required'), // built-in alias for CRequiredValidator
array('username', 'ext.MyValidators.MyLoginValidator'), // Custom validation class
);
}

public
function validateLogin() { // [...]
 
}
 
```

### Scenarios

Each model object has a scenario property.
Some scenarios are built-in and will be assigned automatically by Yii, but you can define your own.
[...]
99 0
114 followers
Viewed: 887 676 times
Version: 1.1
Category: How-tos
Written by: krillzip
Last updated by: Rodrigo
Created on: Nov 29, 2009
Last updated: 10 years ago
Update Article

Revisions

View all history