Welcome Guest, Not a member yet? Register   Sign In
Base URL Question
#1

[eluser]Unknown[/eluser]
Just a quick one for the guru's out there.

I have been playing with code igniter for a couple months.

My app (a robust, very simply CMS) will be running around 300 individual sites that correspond to around 500 domains..

Now the easy way around the setting base_url that I came up with initially was to simply use:

$config['base_url'] = 'http://'.$_SERVER['HTTP_HOST'];

Now I am getting to the stage of writing developer documentation etc I am trying to work out why this seems too easy or something.

Can someone tell me why I shouldnt be doing it like this and what would be a more "elegant" solution.. if not can someone tell me why this isn't set like this as default..?/


Messages In This Thread
Base URL Question - by El Forum - 12-20-2007, 10:30 PM
Base URL Question - by El Forum - 12-20-2007, 11:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB