Load database config from external file. |
Hello,
In the company I work, we developed a webapp based on CI, and my boss wants to "skip" the part when he needs to set the database parameters in CI, because we have already another file in another directory (/etc) where all that information is. So my question is: Is there a way to load that file externally instead of setting the database info in every new install? Thanks in advance. Betflik
Read the file and set the config to environment variables.
> When you instantiate a configuration class, any namespaced environment variables are considered for merging into the configuration object’s properties. See https://codeigniter4.github.io/CodeIgnit...-variables |
Welcome Guest, Not a member yet? Register Sign In |