diff --git a/docs/guide/form.md b/docs/guide/form.md index 5f7082a..8540c3c 100644 --- a/docs/guide/form.md +++ b/docs/guide/form.md @@ -20,7 +20,7 @@ class LoginForm extends Model { return [ // username and password are both required - ['username, password', 'required'], + [['username', 'password'], 'required'], // password is validated by validatePassword() ['password', 'validatePassword'], ];