php - Error when installed Yii2 -


i've install yii2 framework using composer error in browser (on localhost):

invalid configuration – yii\base\invalidconfigexception

yii\web\request::cookievalidationkey must configured secret key.

how can solve problem?

there problem basic app https://github.com/yiisoft/yii2-app-basic/issues/69 composer install doesn't generate key.

you need add key manually.

  1. go /config/web.php.
  2. edit line 'cookievalidationkey' => '', include random string (you can use 'cookievalidationkey' => 'jfsbkjsbfdskjgfdskjbgfsdhjgfajds',

Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -