multiple config files?

multiple config files?

cheikkilacheikkila Posts: 2Questions: 1Answers: 0

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

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Hi Christian,

    The config.php file will be loaded automatically by the Bootstrap.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 the DataTables.php file. How you define that, is up to you as to best suit your system.

    Allan

  • cheikkilacheikkila Posts: 2Questions: 1Answers: 0

    Thanks so much!

This discussion has been closed.