This is just extending the default Yii config to allow the same code being run on different domains/subdomains with different configurations being used automatically. As an added bonus, I have also broken down the Configs into smaller files (since for some websites the config tends to get daunting)