Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
malder1975 committed Oct 14, 2016
1 parent ef51fc6 commit 07a431d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions frontend/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
'controllerNamespace' => 'frontend\controllers',
'layout' => 'vms',
'defaultRoute' => 'vms',
'homeUrl' => '/',
'components' => [
'request' => [
'csrfParam' => '_csrf-frontend',
'baseUrl' => '',
],
'user' => [
'identityClass' => 'common\models\User',
Expand All @@ -39,17 +41,25 @@
],
],
'errorHandler' => [
'errorAction' => 'site/error',
'errorAction' => 'vms/error',
],

'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'page/<page:[\w-]+' => 'sp/index',

['class' => 'common\components\staticpages\PagesUrlRule'],
['class' => 'common\components\staticpages\StrictParseRequest'],

],
],

'assetManager'=>[
'class'=>'yii\web\AssetManager',
'linkAssets'=>true,
],

],
'params' => $params,
];

0 comments on commit 07a431d

Please sign in to comment.