Changeset 844
- Timestamp:
- 10/18/2007 01:31:17 PM (12 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/URI.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/URI.php
r825 r844 104 104 return self::$current_uri; 105 105 } 106 107 public function __toString() 108 { 109 return $this->string(); 110 } 111 112 /** 113 * Returns the URI segment that is preceded by a certain other segment (label) 114 * 115 * @access public 116 * @param string 117 * @param mixed 118 * @return mixed 119 */ 120 public function label($label, $default = FALSE) 121 { 122 if (($key = array_search($label, self::$segments)) === FALSE) 123 return $default; 124 125 return $this->segment($key + 2, $default); 126 } 106 127 107 128 /**
