When building a plugin, how does one define user editable config files? Would it be better to create a settings UI in the plugin and have the user edit those variables in the CP? Or is there a way to do it properly with a config file?
The reason I want to opt for a config option is so the value can be localized for the specific environment to set different options. I need to add the ability to define a public directory that will be used to store generated images and obviously that path could be different on local and production environments.
plugins/pluginHandle/config.php) in the multi-environment config part ofcraft/config/pluginHandle.php. – Brad Bell Jun 27 '16 at 17:44