Overriding the $sql_details in order to connect to a different database.
Overriding the $sql_details in order to connect to a different database.
We have a scenario whereby certain DataTables/Editor instances need to connect to a different database. Is there a way to deal with this? I need to override the default $sql_details settings in config.php.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
There are a few options:
$sql_detailsbefore you include theBootstrap.phpfile it will use your$sql_detailsrather than the one fromconfig.php.new Database( $connection_details )with the array of options you need.Allan
Thank you, Allan. That was the approach I was taking. I just wanted to make sure I wasn't missing something.