Ajax/php/yii/URI.php
function _slash_segment($n, $where='trailing', $which='segment') {
		$leading='/';
		$trailing='/';

		if ($where == 'trailing') {
			$leading='';
		} elseif ($where == 'leading') {
			$trailing='';
		}

		return $leading . $this->$which($n) . $trailing;
	}
function _slash_segment($n, $where='trailing', $which='segment') {
		$leading='/';
		$trailing='/';

		if ($where == 'trailing') {
			$leading='';
		} elseif ($where == 'leading') {
			$trailing='';
		}

		return $leading . $this->$which($n) . $trailing;
	}
function _slash_segment ( $ n , $ where = 'trailing' , $ which = 'segment' ) { $ leading = '/' ; $ trailing = '/' ; if ( $ where == 'trailing' ) { $ leading = '' ; } elseif ( $ where == 'leading' ) { $ trailing = '' ; } return $ leading . $ this -> $ which ( $ n ) . $ trailing ; }
Fetch a URI Segment and add a trailing slash - helper function

@access private
@param integer
@param string
@param string
@return string
Fetch a URI Segment and add a trailing slash - helper function