Welcome Guest, Not a member yet? Register   Sign In
Can someone check base_url() and base_url("param")
#5

(This post was last modified: 09-07-2020, 02:30 AM by John_Betong.)

@SteveDroz,

According to the CI4 manual it is not necessary to precede the parameter with a leading slash. Also I think that would give the URL two slashes.

From the manual:
Quote:echo base_url('blog/post/123');
The above example would return something like:

http://example.com/blog/post/123

I was hoping someone could confirm the script and if the output is the same as mine I will raise a error request.
Reply


Messages In This Thread
RE: Can someone check base_url() and base_url("param") - by John_Betong - 09-07-2020, 02:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB