diff --git a/docs/guide/structure-models.md b/docs/guide/structure-models.md index db6636f93b..be7ac03568 100644 --- a/docs/guide/structure-models.md +++ b/docs/guide/structure-models.md @@ -93,7 +93,7 @@ You can get the label of an attribute by calling [[yii\base\Model::getAttributeL ```php $model = new \app\models\ContactForm; -// displays "Label" +// displays "Name" echo $model->getAttributeLabel('name'); ```