I have cloned PHP code from a Linux server onto a Windows WAMP server. When I run the index.php page the error in the picture appears. From what I can work out in my Windows WAMP server the environment variables have not been initialized.
How do I initialize these variables in the environment?
Thank you.
DB::init([
'host' => $_ENV['DB_HOST'],
'database' => $_ENV['DB_DATABASE'],
'user' => $_ENV['DB_USERNAME'],
'password' => $_ENV['DB_PASSWORD'],
]);