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

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -