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

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

Ah, I see!

Your problem comes from the fact that base_url($param) uses relative URIs. That means that it will display a page according to your current location.

To avoid that, you can prefix your path with a "/" :

PHP Code:
base_url($somethingWithASlash); 


or

PHP Code:
base_url('/'.$somethingWithoutASlash); 
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB