Skip to content

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

Notifications You must be signed in to change notification settings

iamsalnikov/MobileDetect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published

Languages