I get the database information:
$data4shop['webshops'] = $this->Product_shop_model->getWebshop($businessId)->result();
I only need to insert it into the database.php. I want it to look like this, but it doesn't work:
$db['shop'] = array(
'dsn' => '',
'hostname' => $hostname,
'username' => $username,
'password' => $password,
'database' => $database,
I don't know how to pass the variables into database.php. How can I do that?