yii\web\Request::cookieValidationKey must be configured with a secret key.php
解決辦法到/config/web.php裏面修改 'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' =>'myYiifram',
],web