Environments

Environment switching features are not the scope of an MVC (maybe a full framework though).

However, here are some suggestions:

First, create an environments directory in the app/config directory and put the needed environments in there:

app/config/environments/
    dev.php
    production.php
    test.php

Then, setup a way to include the appropriate one. For example: