SMS처리 도우미
이름 is_mobile([$key = NULL])
카테고리 codeigniter     >     User Agent Class(사용자 에이전트 클래스)     >     is_mobile([$key = NULL])
예제(문법)

 반환값
      사용자 에이전트가 (특정한)모바일 디바이스인 경우 "TRUE"를 아니면 "FALSE"를 반환합니다.

 반환값 타입
      bool
 
 사용자 에이전트가 알려진 모바일 디바이스 명칭인 경우 "TRUE/FALSE (boolean)"를 반환합니다.

 if ($this->agent->is_mobile('iphone'))
 {
  $this->load->view('iphone/home');
 }
 elseif ($this->agent->is_mobile())
 {
  $this->load->view('mobile/home');
 }
 else
 {
  $this->load->view('web/home');
 }

변수

 인수
      $key (string) – 선택 옵션으로 모바일 디바이스 명칭

설명
-
X
로그기록