CodeIgniter Forums
Make the App/Config compact, optionally expanded or rewritten - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forum-29.html)
+--- Thread: Make the App/Config compact, optionally expanded or rewritten (/thread-77477.html)



Make the App/Config compact, optionally expanded or rewritten - befull - 09-05-2020

Could you consider make the App/Config directory more compact, optionally expanded or rewritten?

For example:
Make Config/Mimes.php have default values follows the frame-system directory, if we want to modify it in our application, we can add a new Mimes.php file to App/Config for extend or rewrite.
Because we do not need the custom config of Mimes in most cases, and many of other config files.

This will make the App directory more compact, do you support this idea?


RE: Make the App/Config compact, optionally expanded or rewritten - MGatner - 09-10-2020

I’ve often thought that app/Config should all have equivalent versions in system so that when fields are added or changed they don’t need to be updated in app unless they have already deviated. I think your idea is good and takes this even farther: don’t deed app/Config/ with a file by default, but let developers add them as needed.