rsegment() 공개 메소드

Returns the re-routed URI segment (assuming routing rules are used) based on the index provided. If there is no routing, will return the same result as CI_URI::segment().
또한 보기: CI_URI::$rsegments
또한 보기: CI_URI::segment()
public rsegment ( integer $n, mixed $no_result = NULL ) : mixed
$n integer Index
$no_result mixed What to return if the segment index is not found
리턴 mixed
예제 #1
0
파일: MY_URI.php 프로젝트: ngangchill/po
 public function rsegment($n, $no_result = NULL)
 {
     if (!is_numeric($n)) {
         if (array_key_exists($n, $this->uri_parameters)) {
             $n = $this->uri_parameters[$n];
         } else {
             return $no_result;
         }
     }
     return parent::rsegment($n, $no_result);
 }