mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-06 16:07:18 +08:00
Merge pull request #4623 from xBazilio/patch-5
fixed comment in code snippet
This commit is contained in:
@ -93,7 +93,7 @@ You can get the label of an attribute by calling [[yii\base\Model::getAttributeL
|
|||||||
```php
|
```php
|
||||||
$model = new \app\models\ContactForm;
|
$model = new \app\models\ContactForm;
|
||||||
|
|
||||||
// displays "Label"
|
// displays "Name"
|
||||||
echo $model->getAttributeLabel('name');
|
echo $model->getAttributeLabel('name');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user