yii2.0 报错Cookievalidationkey Must Be Configured With A Secret Key

'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => 'test', //这里配置秘钥字符串就不会报错了
]
]
posted @ 2016-06-29 17:17  maxomnis  阅读(609)  评论(0编辑  收藏  举报