Navigate to my-project/app/config/config.php
and configure your database connection:
phpCopy code<?php
return [
'database' => [
'adapter' => 'Mysql',
'host' => 'localhost',
'username' => 'root',
'password' => 'password',
'dbname' => 'my_database',
],
'application' => [
'controllersDir' => __DIR__ . '/../controllers/',
'viewsDir' => __DIR__ . '/../views/',
'baseUri' => '/',
]
];
Leave a Reply