File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments