Page 1 of 1
database setting
Posted: Sun Jan 19, 2025 11:54 pm
by avent
Is there any way to centralize the database settings or import them from a settings file to avoid having to enter them in each component and be able to maintain and modify them in one place?
Re: database setting
Posted: Mon Jan 20, 2025 4:58 am
by wwonderfull
I think in terms of database settings such as username password db name or even table name those can be in a config file and imported to all the scripts but still centralizing it would take a significant amount of change in the php code generated by wwb.
Note that there was a feature released on wwb 19
Login Tools
- New feature: Added 'Synchronize MySQL settings between login objects' option (Tools->Options->General). When this option is enabled, any updates made to MySQL properties will automatically apply to all login objects. Additionally, new login objects created in the project will inherit the same settings as existing objects. This eliminates the need to configure each object individually, streamlining the process and ensuring consistent settings across all login objects.
Re: database setting
Posted: Mon Jan 20, 2025 1:37 pm
by avent
Very well.
I hadn't noticed this option.
Thanks.
Does this option also work with CMS components?
Re: database setting
Posted: Mon Jan 20, 2025 2:18 pm
by Pablo
Does this option also work with CMS components?
Yes.