-
- posted 2½ years ago
Framework: S^3 (aka S cubed): I'm calling it Smart Setting Selection
read
In working on a custom framework (that's uniting a lot of the best of the existing ones, but keeping it lean and cutting out what I don't need), I ran into a configuration roadblock which caused me to write some nifty code.
Basically, this framework has a bunch of settings/config files, and some of the files (ini format, using parse_ini_file) are seperated by the following keywords:
local,development,staging,production