Skip to content

Commit c59a55a

Browse files
author
Igor Chepurnoy
authored
Update README.md
1 parent b536bbe commit c59a55a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,24 @@ $ php yii migrate --migrationPath=@vendor/yii2mod/yii2-cms/migrations
3636
1) To use this extension first you need to configure the [comments extension](https://github.com/yii2mod/yii2-comments), after that you have to configure the main config in your application:
3737
```php
3838
'modules' => [
39-
'admin' => [
40-
'controllerMap' => [
41-
'cms' => 'yii2mod\cms\controllers\CmsController',
42-
// Also you can override some controller properties in following way:
43-
'cms' => [
44-
'class' => 'yii2mod\cms\controllers\CmsController',
45-
'searchClass' => [
46-
'class' => 'yii2mod\cms\models\search\CmsSearch',
47-
'pageSize' => 25
48-
],
49-
'modelClass' => 'Your own cms model class',
50-
'indexView' => 'custom path to index view file',
51-
'createView' => 'custom path to create view file',
52-
'updateView' => 'custom path to update view file',
39+
'admin' => [
40+
'controllerMap' => [
41+
'cms' => 'yii2mod\cms\controllers\CmsController',
42+
// Also you can override some controller properties in following way:
43+
'cms' => [
44+
'class' => 'yii2mod\cms\controllers\CmsController',
45+
'searchClass' => [
46+
'class' => 'yii2mod\cms\models\search\CmsSearch',
47+
'pageSize' => 25
5348
],
49+
'modelClass' => 'Your own cms model class',
50+
'indexView' => 'custom path to index view file',
51+
'createView' => 'custom path to create view file',
52+
'updateView' => 'custom path to update view file',
5453
],
5554
],
5655
],
56+
],
5757
```
5858
> **You can then access to management section through the following URL:**
5959

0 commit comments

Comments
 (0)