Corecast is a GUI for the Icecast 2 streaming server. I built it using CakePHP 3, and then converted it into plugin form. Loading the custom configuration file was simple in the original app, as it was stored in the same directory with app.php and of course I added a line to bootstrap.php to load it.
I can’t seem to figure out how to load the custom configuration in the plugin form, but I am sure that I prefer not to ask the user to move the configuration for the plugin outside of the plugin folder, nor do I want to have to leave any mark of code outside of the plugin folder apart from loading the plugin itself.
The above call to Configure::load() is given the plugin name and the name of the configuration file, in plugin notation. My custom configuration file is named corecast.php and it is also in my plugin’s config folder.