Skip to content

candasm/yii1-mobile-detect-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MobileDetect Component for Yii 1.x

Latest Stable Version Build Status Total Downloads Coverage Status License

Install

In app config:

'components'=>array(
    ...

    'mobileDetect' => array(
        'class' => 'application.vendors.candasm.yii1-mobile-detect-component.src.MobileDetectComponent'
    ),
    
    ...
);

Usage

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

For more information visit MobileDetect Library.

#####Note: Don't forget to set vendor-dir in composer.json file for YiiFramework 1.1.x versions.

"config":{
	"vendor-dir":"protected/vendor/"
},

About

Mobile Detect Component for YiiFramework 1.1.x

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages