Yii框架错误

  1. yii\web\Request::cookieValidationKey must be configured with a secret key.

    解决办法到/config/web.php里面修改 'components' => [
            'request' => [
                // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
                'cookieValidationKey' =>'myYiifram',
            ],

你可能感兴趣的:(Yii框架错误)