Magento: 判断是否为手机浏览 Optimise Web's Mobile Detect Class for Magento

项目地址:Optimise Web's Mobile Detect Class for Magento

 

Optimise Web's Mobile Detect Class for Magento

MobileDetect.net is a lightweight PHP class for detecting mobile devices. Optimise Web's Magento extension allows using Mobile Detect's functions from within Magento.

 

Usage

Mage::helper('mobiledetect')->isMobile()

You can find all the mobile detection functions that Mobile_Detect provides on their Github project page and on their MobileDetect.net website. You just have to use Mage::helper('mobiledetect')-> instead of $detect->

This extension is primarily for use by developers who wish to write PHP conditionals to detect mobile devices.

 

FAQs

 

1. Should I backup Magento's files and database?

Not required. This extension doesn't touch Magento's core file system and it also doesn't interface with the database. Still, please make it a point to backup your files and database before installing or upgrading any Magento module.

 

2. Do you offer support for this extension?

This is a free extension and support will be limited. Please write to us and we'll do our best to help you out.

 

下载包:Optimiseweb_MobileDetect-0.2.2

 

 

原文/转自:Magento: 判断是否为手机浏览 Optimise Web's Mobile Detect Class for Magento

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值