I have my database information file called main-custom.php file which have information in array like this
<?php defined('MW_PATH') || exit('No direct script access allowed');
return array(
// application components
'components' => array(
'db' => array(
'connectionString' => 'mysql:host=localhost;port=3306;dbname=databasebane',
'username' => 'username',
'password' => 'password',
'tablePrefix' => 'mw_',
),
),
// params
'params' => array(
'email.custom.header.prefix' => 'X-Ltxf-'
),
);
Its in Mailwizz.I am looking for get and use this database information in my another file so I have included it in my index.php file like below
<?php
define("MW_PATH","OK");
require_once("../apps/common/config/main-custom.php");
Now I am not getting idea how I can use this database information for create variable like
$connectionString =?
$username =?
.....
Since main-custom.php file returning array, its making me confused and not able to get information from it to my index.php file.
since mailwizz is using main-custom.php as it so I can not modify it. Is there any way to extract required information from it to index.php file without modify it?
Thanks!