Welcome Guest, Not a member yet? Register   Sign In
current_url() & uri_string() returns wrong url?!
#1

[eluser]Mikle[/eluser]
When I go to page:
http://rv.local/info/about.html

current_url()
returns
http://rv.local/info/about_html

uri_string()
returns
/info/about_html

And where id dot?

PS: I call current_url(), uri_string() from _remap of my main controller.
#2

[eluser]renownedmedia[/eluser]
What about just using the segment function from the uri helper?

$this->uri->segment(n)
#3

[eluser]Mikle[/eluser]
[quote author="Thomas Hunter" date="1251230219"]What about just using the segment function from the uri helper?

$this->uri->segment(n)[/quote]

echo $this->uri->segment(2);
return:
about_html

I think there is a bug in CI code...
#4

[eluser]pistolPete[/eluser]
Read these threads:
http://ellislab.com/forums/viewthread/114218/#578089
http://ellislab.com/forums/viewthread/75734/P30/
#5

[eluser]Mikle[/eluser]
Thanks, pistolPete!




Theme © iAndrew 2016 - Forum software by © MyBB