方法一:
第一步:首先在Yii框架下将 Mobile_Detect 组件安装
在cmd中:composer require mobiledetect/mobiledetectlib
第二步:在index.php中增加判断
方法二:
第一步:将Mobile_Detect.php文件放入项目共通文件夹中
下载mobile_detect文件:https://github.com/serbanghita/Mobile-Detect
第二步:在index.php中引入,就可以使用了
方法一:
第一步:首先在Yii框架下将 Mobile_Detect 组件安装
在cmd中:composer require mobiledetect/mobiledetectlib
第二步:在index.php中增加判断
方法二:
第一步:将Mobile_Detect.php文件放入项目共通文件夹中
下载mobile_detect文件:https://github.com/serbanghita/Mobile-Detect
第二步:在index.php中引入,就可以使用了