Skip to content

Commit

Permalink
configure static pages module
Browse files Browse the repository at this point in the history
  • Loading branch information
malder1975 committed Oct 3, 2016
1 parent cdf9174 commit 9429fd7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion common/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,19 @@

'pages' => [
'class' => 'bupy7\pages\Module',
'tableName' => '{{%your_table_name}}',
'tableName' => '{{%static_pages}}',
'controllerMap' => [
'manager' => [
'class' => 'bupy7\pages\controllers\ManagerController',
'as access' => [
'class' => \yii\filters\AccessControl::className(),
'rules' => [
'allow' => TRUE,
'roles' => ['admin'],
],
],
],
],
],
],
];

0 comments on commit 9429fd7

Please sign in to comment.