Lets say our application has configuration that is stored as a simple array:
$config = array(
'max_files' => 10,
'suffixes' => '[jpg,swf,png,gif]',
'max_size' => '10G'
);
We want to keep this configuration in the code, because when we release new versions of the software we want to add or change default values.
Now lets say that we want to open these configuration values to the user (admin) of the website. They will modify these values with some kind of GUI (textbox, dropdown, multiselect etc).
How do we apply updates when we release new versions of the software and still allow users to edit values. How do bigger systems do this (i.e magento for example). Should we copy the values to the database upon "upgrade" and then not use the values in the code?
Happy to hear ideas and thoughts
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With