Welcome Guest, Not a member yet? Register   Sign In
Getting your environments just RIGHT!
#3

As mentioned in the docs, the Config class will load the global config file first, followed by the ENVIRONMENT file. So, if you  call $this->config->load('email') (or just $this->load->library('email')) when you have the following files:
/application/config/email.php
/application/config/production/email.php

It will load /application/config/email.php first, then load the production file, overwriting any duplicated settings with the production values. So, if your production file only includes the settings which need to change for that environment, it doesn't take much effort to figure out what is changing in each environment.
Reply


Messages In This Thread
RE: Getting your environments just RIGHT! - by mwhitney - 09-01-2015, 12:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB