define("DB_NAME", "ggg.sg");
return [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname='.DB_NAME,
'username' => 'admin',
'password' => 'lzj1986!',
'charset' => 'utf8mb4',
'enableSchemaCache' => true,
'schemaCacheDuration' => 600,
'schemaCache' => 'cache'
]
];
Fatal error: Uncaught Error: Undefined constant "DB_NAME" in /www/ggg.sg/config/web.php:50
Stack trace:
#0 /www/ggg.sg/web/index.php(30): require()
#1 {main}
thrown in /www/ggg.sg/config/web.php on line 50