Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Расширение для Yii MobileDetect

branch: master
README.md

MobileDetect Yii Extension

This Extension based on Mobile_Detect class writed by Serban Ghita and Victor Stanciu

Install

In app config:

'components'=>array(
    ...

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

    ...
);

Usage

  $detect = Yii::app()->mobileDetect;
  // call methods
  $detect->isMobile();
  $detect->isTablet();
  $detect->isIphone();
  ...

Links

Class site
Class (GitHub)
Example

Something went wrong with that request. Please try again.