Loading basic/config/web.php +10 −3 Original line number Diff line number Diff line Loading @@ -13,8 +13,10 @@ $config = [ ], 'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => 'OsrMbvjpP9SCngWzSP4-2HnMMSFODuBl', 'parsers' => [ 'application/json' => 'yii\web\JsonParser', ] ], 'cache' => [ 'class' => 'yii\caching\FileCache', Loading Loading @@ -42,14 +44,19 @@ $config = [ ], ], 'db' => $db, /* 'urlManager' => [ 'enablePrettyUrl' => true, 'enableStrictParsing' => false, 'showScriptName' => false, 'rules' => [ ['class' => 'yii\rest\UrlRule', 'controller' => 'api'], ], ] ], 'controllerMap' => [ 'api' => [ 'class' => 'app\controllers\ApiController', ], */ ], 'params' => $params, ]; Loading Loading
basic/config/web.php +10 −3 Original line number Diff line number Diff line Loading @@ -13,8 +13,10 @@ $config = [ ], 'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => 'OsrMbvjpP9SCngWzSP4-2HnMMSFODuBl', 'parsers' => [ 'application/json' => 'yii\web\JsonParser', ] ], 'cache' => [ 'class' => 'yii\caching\FileCache', Loading Loading @@ -42,14 +44,19 @@ $config = [ ], ], 'db' => $db, /* 'urlManager' => [ 'enablePrettyUrl' => true, 'enableStrictParsing' => false, 'showScriptName' => false, 'rules' => [ ['class' => 'yii\rest\UrlRule', 'controller' => 'api'], ], ] ], 'controllerMap' => [ 'api' => [ 'class' => 'app\controllers\ApiController', ], */ ], 'params' => $params, ]; Loading