Welcome Guest, Not a member yet? Register   Sign In
Multiple config.php files
#2

(This post was last modified: 03-16-2016, 11:18 AM by Russ_AB.)

Use the ENVIRONMENT constant to check.

Something like

PHP Code:
$config['base_url'] = (ENVIRONMENT === 'production' 'http://prod' 'http://dev'); 
Reply


Messages In This Thread
Multiple config.php files - by Wouter60 - 03-16-2016, 11:05 AM
RE: Multiple config.php files - by Russ_AB - 03-16-2016, 11:18 AM
RE: Multiple config.php files - by Narf - 03-16-2016, 11:24 AM
RE: Multiple config.php files - by Wouter60 - 03-16-2016, 11:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB