Welcome Guest, Not a member yet? Register   Sign In
page anchors
#2

[eluser]Sean Gates[/eluser]
You need a little more than uri_string. Use the URL helper and use site_url():

Code:
<a href="<?=site_url($this->uri->uri_string());?>#top">Back to Top</a>

More info here: [url="http://ellislab.com/codeigniter/user-guide/helpers/url_helper.html"]http://ellislab.com/codeigniter/user-guide/helpers/url_helper.html[/url]


Messages In This Thread
page anchors - by El Forum - 01-18-2010, 02:38 PM
page anchors - by El Forum - 01-18-2010, 04:29 PM
page anchors - by El Forum - 01-18-2010, 04:33 PM
page anchors - by El Forum - 01-18-2010, 08:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB