From b071bb5a92aade551345a495fb13f5678f3978d0 Mon Sep 17 00:00:00 2001
From: admin The first parameter can contain any segments you wish appended to the URL. As with the site_url() function above,
-segments can be a string or an array. Note: Do not include the base URL. It will be built as specified in your config file. Include
-only the URI segments you wish appended to the URL.$options = array(
diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html
index a8f5c14d6..2b5b354cc 100644
--- a/user_guide/helpers/url_helper.html
+++ b/user_guide/helpers/url_helper.html
@@ -117,8 +117,10 @@ echo site_url($segments);
'small' => 'Small Shirt',
'med' => 'Medium Shirt',
- large' => 'Large Shirt',
+ 'large' => 'Large Shirt',
'xlarge' => 'Extra Large Shirt',
);
@@ -217,10 +217,10 @@ echo form_dropdown('shirts', $options, 'large');
// Would produce:
<select name="shirts">
-<option value="small">Small Shirt
-<option value="med">Medium Shirt
-<option value="large" selected>Large Shirt
-<option value="xlarge">Extra Large Shirt
+<option value="small">Small Shirt</option>
+<option value="med">Medium Shirt</option>
+<option value="large" selected>Large Shirt</option>
+<option value="xlarge">Extra Large Shirt</option>
</select>anchor(uri segments, text, attributes)
Note: If you are building links that are internal to your application do not include the base URL (http://...). This +will be added automatically from the information specified in your config file. Include only the URI segments you wish appended to the URL.
The second segment is the text you would like the link to say. If you leave it blank, the URL will be used.
-- cgit v1.2.3-24-g4f1b