Codeigniter has its 'ENVIRONMENT' setting such that when in a production environment, by changing the setting to 'production', all of the production configuration files are included.
A large amount of my website utilizes javascript. As such I want to have some config such as the below which changes dependent on whether i'm in a local or production environment.
<base href="http://localhost/site/" />
<script type="text/javascript">
var base_url = 'http://localhost/site/';
</script>
Does anyone know how i can make codeigniter include config/production/custom-config.php And if I could, surely that wouldn't be a suitable place for such configuration?
Many Thanks