Расширение для Yii MobileDetect
PHP
Permalink
Failed to load latest commit information.
MobileDetect Updated to 2.8.4 Oct 6, 2014
.gitattributes Первый коммит Jan 15, 2013
.gitignore Первый коммит Jan 15, 2013
README.md Update README.md Dec 24, 2013

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