Browse Source

fixes #1803.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
f2fb7de5f4
  1. 2
      docs/guide/form.md

2
docs/guide/form.md

@ -20,7 +20,7 @@ class LoginForm extends Model
{ {
return [ return [
// username and password are both required // username and password are both required
['username, password', 'required'], [['username', 'password'], 'required'],
// password is validated by validatePassword() // password is validated by validatePassword()
['password', 'validatePassword'], ['password', 'validatePassword'],
]; ];

Loading…
Cancel
Save