Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy authored Nov 10, 2016
1 parent b536bbe commit c59a55a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,24 @@ $ php yii migrate --migrationPath=@vendor/yii2mod/yii2-cms/migrations
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:
```php
'modules' => [
'admin' => [
'controllerMap' => [
'cms' => 'yii2mod\cms\controllers\CmsController',
// Also you can override some controller properties in following way:
'cms' => [
'class' => 'yii2mod\cms\controllers\CmsController',
'searchClass' => [
'class' => 'yii2mod\cms\models\search\CmsSearch',
'pageSize' => 25
],
'modelClass' => 'Your own cms model class',
'indexView' => 'custom path to index view file',
'createView' => 'custom path to create view file',
'updateView' => 'custom path to update view file',
'admin' => [
'controllerMap' => [
'cms' => 'yii2mod\cms\controllers\CmsController',
// Also you can override some controller properties in following way:
'cms' => [
'class' => 'yii2mod\cms\controllers\CmsController',
'searchClass' => [
'class' => 'yii2mod\cms\models\search\CmsSearch',
'pageSize' => 25
],
'modelClass' => 'Your own cms model class',
'indexView' => 'custom path to index view file',
'createView' => 'custom path to create view file',
'updateView' => 'custom path to update view file',
],
],
],
],
```
> **You can then access to management section through the following URL:**
Expand Down

0 comments on commit c59a55a

Please sign in to comment.