Extension allows you to get information about mobile device.
This extension based on Mobile_Detect class.
Yii 1.1 or above
'components'=>array( ... 'mobileDetect' => array( 'class' => 'ext.MobileDetect.MobileDetect' ), ... );
This extension support all methods from Mobile_Detect Class.
$detect = Yii::app()->mobileDetect; // call methods $detect->isMobile(); $detect->isTablet(); $detect->isIphone(); ...
Total 1 comment
Nice extension, but wouldn't it be good to have separate component class which handles Yii integration keeping the original Mobile_Detect class intact? Thus users can always update original file whenever they need rather than being dependent on this extension.
Leave a comment
Please login to leave your comment.