From a2a4c40be0cbb3c8e5dc0614440fca6327405cd9 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Wed, 3 Jul 2013 02:07:01 +0200 Subject: [PATCH] better sentence for label example. --- docs/guide/model.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/model.md b/docs/guide/model.md index 400fa4f..3da877e 100644 --- a/docs/guide/model.md +++ b/docs/guide/model.md @@ -69,7 +69,7 @@ Attribute labels ---------------- Attribute labels are mainly used for display purpose. For example, given an attribute `firstName`, we can declare -a label `First Name` which is more user-friendly and can be displayed to end users as a form label or next to the attribute value. +a label `First Name` which is more user-friendly and can be displayed to end users for example as a form label. By default an attribute label is generated using [[\yii\base\Model\generateAttributeLabel()]] but the better way is to specify it explicitly like the following: