Welcome Guest, Not a member yet? Register   Sign In
site_url removes part of string
#1

[eluser]doors[/eluser]
I have something like this for my site_url in the config file:

http://www.example.com/catalog/

When I am using site_url function it gives the following string:

http://www.example.com

Why is that happening?
#2

[eluser]Pygon[/eluser]
site_url is based off $config['base_url'] and doesn't contain any logic to strip anything off of it.
#3

[eluser]Doosje[/eluser]
I think doors means somthing else.
site_url gives the url defined like Pygon said.
If you want it to point to something else try:
Code:
site_url('catelog');
#4

[eluser]doors[/eluser]
Sorry guys. I was using base_url() instead of site_url().




Theme © iAndrew 2016 - Forum software by © MyBB