Commit 4e1264ef by Qiang Xue

Merge pull request #695 from Jomaanro/master

[doc] Correct validation rule in model
parents eda171e1 aaa84df0
...@@ -237,8 +237,8 @@ function rules() ...@@ -237,8 +237,8 @@ function rules()
{ {
return array( return array(
// rule applied when corresponding field is "safe" // rule applied when corresponding field is "safe"
array('username', 'length', 'min' => 2), array('username', 'string', 'min' => 2),
array('first_name', 'length', 'min' => 2), array('first_name', 'string', 'min' => 2),
array('password', 'required'), array('password', 'required'),
// rule applied when scenario is "signup" no matter if field is "safe" or not // rule applied when scenario is "signup" no matter if field is "safe" or not
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment