Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter's Subdomain Support
#3

[eluser]Colin Williams[/eluser]
For starters, I never include a domain in my base_url setting. I don't know why anyone would.

Code:
$config['base_url'] = '/';

And for database configuration, I like to name the database groups by either the server IP or hostname. Then you can set $active_group to something like $_SERVER['SERVER_ADDR'] or $_SERVER['HOSTNAME'], so it's dynamic in that way.


Messages In This Thread
CodeIgniter's Subdomain Support - by El Forum - 11-06-2009, 11:39 AM
CodeIgniter's Subdomain Support - by El Forum - 11-06-2009, 11:47 AM
CodeIgniter's Subdomain Support - by El Forum - 11-07-2009, 09:07 PM
CodeIgniter's Subdomain Support - by El Forum - 11-08-2009, 05:46 AM
CodeIgniter's Subdomain Support - by El Forum - 11-08-2009, 08:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB