Codigniter 4.6.1 not loading config files based on environment |
(05-28-2025, 06:03 AM)chenzen Wrote: For example, in one instance, I may deploy 4 modules, in another instance 5 different modules. So I will have the config/instance/[files] handle the configurations that will be peculiar to that instance. What do you mean by "instance"? That’s not a built-in CodeIgniter concept. In CodeIgniter, each module can (and should if required) come with its own config file under the module's Config directory. If you're trying to build a kind of multi-tenant configuration system, where different deployments load different sets of modules or settings - that's not supported out of the box, and I don't believe it will be in the future. If you're aiming for dynamic or tenant-specific configurations, I’d suggest looking into Registrars or the Settings package. These give you more flexible and maintainable ways to manage application-level config at runtime.
michalsn.dev - mostly about CodeIgniter
|
Welcome Guest, Not a member yet? Register Sign In |