URI 관련
Method 결과
$this->uri->uri_string() uri_lib/index/n1/1/n2/2/n3/3/n4/4
$this->uri->total_segments() 10
$this->uri->segment(3) n1
$this->uri->segment(20, '1') 1
$this->uri->slash_segment(5) n2/
$this->uri->slash_segment(5, 'leading') /n2
$this->uri->slash_segment(5, 'both') /n2/
$this->uri->segment_array() Array ( [1] => uri_lib [2] => index [3] => n1 [4] => 1 [5] => n2 [6] => 2 [7] => n3 [8] => 3 [9] => n4 [10] => 4 )
$this->uri->uri_to_assoc() Array ( [n1] => 1 [n2] => 2 [n3] => 3 [n4] => 4 )
$this->uri->uri_to_assoc(5) Array ( [n2] => 2 [n3] => 3 [n4] => 4 )
$this->uri->assoc_to_uri() product/shoes/size/large/color/red
재 라우팅(re-routed) URI 관련
$this->uri->ruri_string() /uri_lib/index/n1/1/n2/2/n3/3/n4/4
$this->uri->total_rsegments() 10
$this->uri->rsegment(3) n1
$this->uri->rsegment(20, '1') 1
$this->uri->slash_rsegment(5) n2/
$this->uri->slash_rsegment(5, 'leading') /n2
$this->uri->slash_rsegment(5, 'both') /n2/
$this->uri->rsegment_array() Array ( [1] => uri_lib [2] => index [3] => n1 [4] => 1 [5] => n2 [6] => 2 [7] => n3 [8] => 3 [9] => n4 [10] => 4 )
$this->uri->ruri_to_assoc() Array ( [n1] => 1 [n2] => 2 [n3] => 3 [n4] => 4 )
$this->uri->ruri_to_assoc(5) Array ( [n2] => 2 [n3] => 3 [n4] => 4 )

// End of Sample

© Copyright by hoksi(Page rendered in 0.0027 seconds)