summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-08-20 00:16:40 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-08-20 00:16:40 +0200
commit587b37a60c00ef1cadd052a192937ef7628fed62 (patch)
tree285ecbfe217dba9c3079af40fa7a4114c72f1cf0
parent9e2c04cf14fe8fb27d5ac520c95c68336255b2db (diff)
Added descriptions for current_url() and uri_segments()
-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>