Hey! Keep up to date with the project through its beta and public launch by following @getsparks.

 
0
2
0
2,016 Installs

Basic Information: mobiledetection

Lightweight mobile device detection routine

Contributor : weejames
Email : Log in to view
Author Website : http://jamesconstable.co.uk
Spark Website : https://github.com/weejames/Mobile-Device-Detection-for-CodeIgniter
Repository Type : git
Number of Installs : 2,016

Get the Latest

How-To

Mobile Device Detection for CodeIgniter by James Constable me@jamesconstable.co.uk @weejames

21/04/2011

Intro:

This is a lightweight mobile device detection algorithm for CodeIgniter.

Installation:

You can either use http://getsparks.org to install via the spark installer. Visit http://getsparks.org/packages/mobiledetection/versions/HEAD/show to install it.

or

1) Extract the archive you get from here. 2) Put libraries/mobiledetection.php into your applications libraries diectory.

Usage:

If you've installed via the spark then add the following to your controller.

$this->load->spark('mobiledetection');

or

$this->load->library('mobiledetection');

if you've installed manually.

From there on call the following function to determine if your visitor is using a mobile device.

$this->mobiledetection->isMobile();

True is returned if they are, otherwise false is returned.

Problems? Suggestions?

Twitter: @weejames Email: me@jamesconstable.co.uk Web: http://jamesconstable.co.uk GitHub: http://github.com/weejames

Older Versions

  • 1.0.0 Pushed April 20th, 2011
    php tools/spark install -v1.0.0 mobiledetection Or download this version manually: Get mobiledetection-v1.0.zip

Comments

blog comments powered by Disqus