mobiledetect Get information about mobile device

  1. Requirements
  2. Installation
  3. Usage

Extension allows you to get information about mobile device.
This extension based on Mobile_Detect class.

Requirements

Yii 1.1 or above

Installation

  1. Download extension from repository https://github.com/iamsalnikov/MobileDetect
  2. Install into your extension dir (ext.MobileDetect)
  3. Include component
'components'=>array(
    ...

    'mobileDetect' => array(
        'class' => 'ext.MobileDetect.MobileDetect'
    ),

    ...
);

Usage

This extension support all methods from Mobile_Detect Class.

$detect = Yii::app()->mobileDetect;
// call methods
$detect->isMobile();
$detect->isTablet();
$detect->isIphone();
...
11 0
23 followers
1 355 downloads
Yii Version: 1.1
License: MIT
Category: Others
Tags:
Developed by: IAmSalnikov
Created on: Jan 16, 2013
Last updated: 4 years ago

Downloads

show all