Skip to content

Commit 2aed413

Browse files
author
Igor Chepurnoy
authored
Update README.md
1 parent a03389b commit 2aed413

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ Usage
7070
```php
7171
<?php echo \yii2mod\comments\widgets\Comment::widget([
7272
'model' => $model,
73-
'relatedTo' => 'User ' . \Yii::$app->user->identity->username . ' commented on the page ' . \yii\helpers\Url::current() // for example
73+
'relatedTo' => 'User ' . \Yii::$app->user->identity->username . ' commented on the page ' . \yii\helpers\Url::current(), // for example
74+
'maxLevel' => 3 // maximum comments level, level starts from 1, null - unlimited level. Defaults to `7`
7475
]); ?>
7576
```
7677

0 commit comments

Comments
 (0)