From 114ab0988e20ac6be39ad363ff897a1a3b85e565 Mon Sep 17 00:00:00 2001
From: Razican This function lets you turn URI segments into and associative array of key/value pairs. Consider this URI: This function lets you turn URI segments into and associative array of key/value pairs. Consider this URI: Takes an associative array as input and generates a URI string from it. The array keys will be included in the string. Example: Takes an associative array as input and generates a URI string from it. The array keys will be included in the string. Example: Returns a string with the complete URI. For example, if this is your full URL: Returns a string with the complete URI. For example, if this is your full URL: This function is almost identical to $this->uri->segment(), except it adds a trailing and/or leading slash based on the second
-parameter. If the parameter is not used, a trailing slash added. Examples:index.php/user/search/name/joe/location/UK/gender/male
@@ -143,7 +143,7 @@ re-routed URI in the event you are using CodeIgniter's $this->uri->assoc_to_uri()
-$array = array('product' => 'shoes', 'size' => 'large', 'color' => 'red');
$str = $this->uri->assoc_to_uri($array);
-// Produces: product/shoes/size/large/color/red
+// Produces: product/shoes/size/large/color/red
$this->uri->uri_string()
-http://example.com/index.php/news/local/345
@@ -215,7 +215,7 @@ re-routed URI in the event you are using CodeIgniter's $this->uri->slash_segment(n)
$this->uri->slash_segment(3);
$this->uri->slash_segment(3, 'leading');
@@ -130,7 +130,7 @@ re-routed URI in the event you are using CodeIgniter's 'male'
)
-The first parameter of the function lets you set an offset. By default it is set to 3 since your +
The first parameter of the function lets you set an offset. By default it is set to 3 since your URI will normally contain a controller/function in the first and second segments. Example:
@@ -173,19 +173,19 @@ re-routed URI in the event you are using CodeIgniter's $this->uri->segment_array()
-Returns an array containing the URI segments. For example:
+Returns an array containing the URI segments. For example:
$segs = $this->uri->segment_array();
--
cgit v1.2.3-24-g4f1b