multiple config files?
multiple config files?
I will have multiple projects that use the Editor extension, and each project will have its own database connection details. The installation instructions and the examples just have a single config.php file. Will I create multiple config files and specify which to use in my application (how)? Or list multiple connection arrays in the one config.php file (again, how)? I don't see a method of specifying different db configs, aside from having multiple instances of Editor.
Thanks
Christina
This question has an accepted answers - jump to answer
Answers
Hi Christian,
The
config.php
file will be loaded automatically by theBootstrap.php
file if$sql_details
is not defined. If it is already defined then it will use that variable rather than attempting to load the config file.So to answer your question, simply define the
$sql_details
array before you include theDataTables.php
file. How you define that, is up to you as to best suit your system.Allan
Thanks so much!