Skip to content

Commit b536bbe

Browse files
author
igor-chepurnoi
committed
change configuration example for cms controller in README
1 parent 8b62ce7 commit b536bbe

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ $ php yii migrate --migrationPath=@vendor/yii2mod/yii2-cms/migrations
8484
'class' => 'yii2mod\cms\actions\PageAction',
8585
// Also you can override some action properties in following way:
8686
'layout' => 'your custom layout',
87-
'viewPath' => 'your custom view file'
87+
'viewPath' => 'your custom view file',
88+
// You can set parameters that you want to parse before the page is loaded, for example:
89+
'baseTemplateParams' => [
90+
'homeUrl' => Yii::$app->homeUrl,
91+
'siteName' => Yii::$app->name
92+
]
8893
]
8994
];
9095
}
@@ -171,7 +176,7 @@ return [
171176
return [
172177
'page' => [
173178
'class' => 'yii2mod\cms\actions\PageAction',
174-
// You can set the parameters that you want to parse before the page is loaded, for example:
179+
// You can set parameters that you want to parse before the page is loaded, for example:
175180
'baseTemplateParams' => [
176181
'homeUrl' => 'your site home url',
177182
'siteName' => Yii::$app->name

0 commit comments

Comments
 (0)