Difference between #112 and #113 of
Yii v2 snippet guide

Revision #113 has been created by rackycz on Sep 27, 2019, 6:37:42 AM with the memo:

user model
« previous (#112) next (#114) »

Changes

Title unchanged

Yii v2 snippet guide

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2

Content changed

[...]
[['username', 'email'], 'string', 'max' => 45],
['email', 'email'],
[['password', 'authKey'], 'string', 'max' => 60],
[['password', 'password_new_repeat', 'password_new'], 'safe'],
['password_new_repeat', 'compare', 'operator' => '==', 'compareAttribute' => 'password_new'],
            ['password_new', 'compare', 'operator' => '==', 'compareAttribute' => 'password_new_repeat'],
 
            
 
['password_new_repeat', 'setPasswordWhenChanged'],
];
}

public function attributeLabels() {
return [
[...]
7 0
4 followers
Viewed: 274 972 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: a year ago
Update Article

Revisions

View all history