From 587b37a60c00ef1cadd052a192937ef7628fed62 Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Tue, 19 Aug 2008 22:16:40 +0000 Subject: Added descriptions for current_url() and uri_segments() --- user_guide/helpers/url_helper.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'user_guide/helpers/url_helper.html') diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html index 55d2ed090..c26bbcbf7 100644 --- a/user_guide/helpers/url_helper.html +++ b/user_guide/helpers/url_helper.html @@ -94,6 +94,18 @@ echo site_url($segments); echo base_url(); +

current_url()

+

Returns the full URL (including segments) of the page being currently viewed.

+ + +

uri_segments()

+

Returns the URI segments of any page that contains this function. For example, if your URL was this:

+http://some-site.com/blog/comments/123 + +

The function would return:

+blog/comments/123 + +

index_page()

Returns your site "index" page, as specified in your config file. Example:

echo index_page(); -- cgit v1.2.3-24-g4f1b