From aaa84df0affdc355f07ab940560cdeeb9669d52a Mon Sep 17 00:00:00 2001 From: Maikel Brouwer Date: Wed, 31 Jul 2013 13:15:22 +0200 Subject: [PATCH] Correct validation rule --- docs/guide/model.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/model.md b/docs/guide/model.md index bae9ab6..3657a2e 100644 --- a/docs/guide/model.md +++ b/docs/guide/model.md @@ -237,8 +237,8 @@ function rules() { return array( // rule applied when corresponding field is "safe" - array('username', 'length', 'min' => 2), - array('first_name', 'length', 'min' => 2), + array('username', 'string', 'min' => 2), + array('first_name', 'string', 'min' => 2), array('password', 'required'), // rule applied when scenario is "signup" no matter if field is "safe" or not