반환값
사용자 에이전트가 (특정한)모바일 디바이스인 경우 "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) – 선택 옵션으로 모바일 디바이스 명칭