Skip to content

Commit ec3da8f

Browse files
author
Igor Chepurnoy
committed
add info to readme about comments module
1 parent ff64f5a commit ec3da8f

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ To access the module, you need to configure the modules array in your applicatio
5959
> http://localhost/path/to/index.php?r=/cms/manage/index
6060

6161

62-
**Configure UrlManager**
62+
**Configure Url Manager**
6363

6464
You need to configure the `urlManager` array in your application configuration:
6565

@@ -160,3 +160,26 @@ public function actions()
160160
];
161161
}
162162
```
163+
164+
4. You can change comments module settings by the following code:
165+
166+
```php
167+
public function actions()
168+
{
169+
return [
170+
'page' => [
171+
'class' => 'yii2mod\cms\actions\PageAction',
172+
'commentWidgetParams' => [
173+
'maxLevel' => 1,
174+
'dataProviderConfig' => [
175+
'pagination' => [
176+
'pageSize' => 10
177+
],
178+
],
179+
]
180+
]
181+
];
182+
}
183+
```
184+
185+
> For detail information about comments module please view the following [page](https://github.com/yii2mod/yii2-comments)

0 commit comments

Comments
 (0)