Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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

About

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

Пример: http://iamsalnikov.ru/examples/mobileDetect

Resources

Languages

You can’t perform that action at this time.