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

[eluser]GSV Sleeper Service[/eluser]
code igniter urls tend to look like
Code:
http://www.foo.com/controller/method/any/number/of/extra/parameters
if you didn't use absolute urls your web server would have a hell of a time searching for images / javascript etc.
personally I use the <base> tag, then you can use relative urls in your views, but they'll be relative to the path set in the <base> tag.


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