yii1-mobile-detect-component Component for Mobile Detect Library

MobileDetect Component for Yii 1.x
Install

Composer ~~~ $ composer require candasm/yii1-mobile-detect-component ~~~

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.x versions.

"config":{
	"vendor-dir":"protected/vendor/"
},
0 0
1 follower
0 downloads
Yii Version: 1.1
License: (not set)
Category: User Interface
Developed by: candasm
Created on: Sep 20, 2016
Last updated: 8 years ago

Related Extensions