From f2fb7de5f47234a60ea2369d625840ab7b01dc2f Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Mon, 6 Jan 2014 07:17:10 -0500 Subject: [PATCH] fixes #1803. --- docs/guide/form.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'], ];