Welcome Guest, Not a member yet? Register   Sign In
Why be throwing around $this->config->item('base_url') ? Why not stick with $_SERVER('HTTP_HOST')?
#1

[eluser]dallasray[/eluser]
I am reading "Codeigniter for Rapid PHP Application Developmentā€ and I notice quickly that the authors use 'base_url' all over the place. I am sure there's an advantage to doing this over sticking with $_SERVER('HTTP_HOST'), but I just can't think of what it is.

Can someone help me know the advantage(s)?


Messages In This Thread
Why be throwing around $this->config->item('base_url') ? Why not stick with $_SERVER('HTTP_HOST')? - by El Forum - 12-21-2009, 09:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB