Skip to content

yiiext/mobile-detect-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MobileDetectComponent

Mobile devices detecting with Mobile_Detect.

Installation and configuration

Install Mobile_Detect via composer.

Copy component to extensions/mobile-detect-component directory located inside your application and add it to the application configuration the following way:

<?php
return array(
...
	'components'=>array(
		...
		'mobileDetect'=>array(
			'class'=>'ext.mobile-detect-component.MobileDetectComponent',
		),
		...
	),
...
);

Usage example

<?php
Yii::app()->mobileDetect->isMobile();

About

Mobile devices detecting with Mobile_Detect.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages