Skip to content

Commit 8b62ce7

Browse files
author
igor-chepurnoi
committed
update README
1 parent 622a9d1 commit 8b62ce7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,17 @@ to the require section of your composer.json.
2929
CONFIGURATION
3030
------------
3131
> If you use this extension separate from the [base template](https://github.com/yii2mod/base), then you need execute migration by the following command:
32+
```bash
33+
$ php yii migrate --migrationPath=@vendor/yii2mod/yii2-cms/migrations
3234
```
33-
php yii migrate --migrationPath=@vendor/yii2mod/yii2-cms/migrations
34-
```
35-
36-
> NOTE: comments extension used in 1.0.5 release and above, if you are using a previous version of this extension, you don't need to install [comments extension](https://github.com/yii2mod/yii2-comments).
3735

3836
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:
3937
```php
4038
'modules' => [
4139
'admin' => [
4240
'controllerMap' => [
4341
'cms' => 'yii2mod\cms\controllers\CmsController',
44-
// Also you can override some controller properties.
42+
// Also you can override some controller properties in following way:
4543
'cms' => [
4644
'class' => 'yii2mod\cms\controllers\CmsController',
4745
'searchClass' => [
@@ -84,13 +82,14 @@ php yii migrate --migrationPath=@vendor/yii2mod/yii2-cms/migrations
8482
return [
8583
'page' => [
8684
'class' => 'yii2mod\cms\actions\PageAction',
87-
// You can set your template files
88-
'layout' => '@app/modules/backend/views/layouts/main',
89-
'viewPath' => '@app/modules/backend/views/cms/'
85+
// Also you can override some action properties in following way:
86+
'layout' => 'your custom layout',
87+
'viewPath' => 'your custom view file'
88+
]
9089
];
9190
}
9291
```
93-
> And now you can create your own pages via the admin panel, and access them via the `url` of each page.
92+
> And now you can create your own pages via admin panel.
9493
9594
## Internationalization
9695

0 commit comments

Comments
 (0)