Welcome Guest, Not a member yet? Register   Sign In
Purpose of anchor() and $baseURL vs. relative URLs
#3

[eluser]wiredesignz[/eluser]
The only benefit of using relative URL's in client side code (HTML or CSS) is to reduce the overall transmitted file size and maybe reduce the amount of typing you need to do.

The browser still has to prefix the source http://domain when resolving the URL properly.

Whereas base_url() and anchor() provide the full URL dynamically and help reduce typing.


Messages In This Thread
Purpose of anchor() and $baseURL vs. relative URLs - by El Forum - 04-10-2008, 02:34 AM
Purpose of anchor() and $baseURL vs. relative URLs - by El Forum - 04-10-2008, 02:49 AM
Purpose of anchor() and $baseURL vs. relative URLs - by El Forum - 04-10-2008, 05:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB