질문
Q #12244
$this->uri->segment() 관련질문.
작업공간
2015-06-02 16:49:13
"$this->uri->segment(2)/$this->uri->segment(3)/$this->uri->segment(4)"
주소에 이렇게 들어가는 부분이 매우 많다보니..한줄이 좀 길어지는거 같아서
저부분을 짧게 줄이는 방법은 없을까요?
$this->uri->segment(2~4)
이렇게라던가..?
$this->uri->segment(2, 4)
이렇게 할까 했는데 가이드를 보니까 segment의 2번째 변수는 "기본값지정" 이더라구요...
ㅠㅠ.
그 외에 함수 설명이 이해가 잘 안되는게 있는데 그중에 과연 있을지.. 질문드려봅니답..
http://cikorea.net/user_guide_2.1.0/libraries/uri.html