summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/helpers/url_helper.html12
1 files changed, 12 insertions, 0 deletions
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);</code>
<code>echo base_url();</code>
+<h2>current_url()</h2>
+<p>Returns the full URL (including segments) of the page being currently viewed.</p>
+
+
+<h2>uri_segments()</h2>
+<p>Returns the URI segments of any page that contains this function. For example, if your URL was this:</p>
+<code>http://some-site.com/blog/comments/123</code>
+
+<p>The function would return:</p>
+<code>blog/comments/123</code>
+
+
<h2>index_page()</h2>
<p>Returns your site "index" page, as specified in your config file. Example:</p>
<code>echo index_page();</code>