Changeset 412 for branches/devel/system/libraries/URI.php
- Timestamp:
- 08/26/2007 02:43:57 PM (16 months ago)
- Files:
-
- 1 modified
-
branches/devel/system/libraries/URI.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/devel/system/libraries/URI.php
r407 r412 2 2 3 3 class URI_Core extends Router { 4 4 5 5 public function segment($index = 1) 6 6 { 7 7 $index = (int) $index - 1; 8 8 9 9 return isset(self::$segments[$index]) ? self::$segments[$index] : FALSE; 10 10 } … … 19 19 $segment_array[$i++] = $segment; 20 20 } 21 21 22 22 return $segment_array; 23 23 } 24 24 25 25 public function string() 26 26 { 27 27 return implode('/', self::$segments); 28 28 } 29 29 30 30 } // End URI Class
