From e843c3074a99ee91a28eb072dc1e2a20aef342b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=9C=E6=96=B9=E5=AD=A4=E6=80=9D=E5=AD=90=EF=BC=88Pari?= =?UTF-8?q?s=C2=B7QianSen=EF=BC=89?= Date: Sat, 26 Jul 2014 22:15:35 +0800 Subject: [PATCH] typo fix not sure about L421 --- docs/guide/tutorial-core-validators.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/guide/tutorial-core-validators.md b/docs/guide/tutorial-core-validators.md index 317d82feea..236136b6f2 100644 --- a/docs/guide/tutorial-core-validators.md +++ b/docs/guide/tutorial-core-validators.md @@ -393,7 +393,7 @@ This validator checks if the input value is provided and not empty. if this property is true. > Info: How to determine if a value is empty or not is a separate topic covered - in the [Empty Values](input-validation.md#empty-values) section. + in the [Empty Values](input-validation.md#handling-empty-inputs) section. ## [[yii\validators\SafeValidator|safe]] @@ -418,15 +418,13 @@ a [safe attribute](structure-models.md#safe-attributes). ] ``` -This validator checks if the input value - -Validates that the attribute value is of certain length. +This validator checks if the input value is a valid string with certain length. - `length`: specifies the length limit of the input string being validated. This can be specified in one of the following forms: * an integer: the exact length that the string should be of; * an array of one element: the minimum length of the input string (e.g. `[8]`). This will overwrite `min`. - * an array of two elements: the minimum and maximum lengths of the input string (e.g. `[8, 128]`)`. + * an array of two elements: the minimum and maximum lengths of the input string (e.g. `[8, 128]`). This will overwrite both `min` and `max`. - `min`: the minimum length of the input string. If not set, it means no minimum length limit. - `max`: the maximum length of the input string. If not set, it means no maximum length limit.