88,190 Installs and Counting! Get Sparks Now!
Hey! Keep up to date with the project through its beta and public launch by following @getsparks.
Tweet
A Quick Looks At Sparks (EllisLab Official Post)
March 11, 2012
from: codeigniter.com
The Top Sparks of 2011
December 31, 2011
from: codefury.net
CodeIgniter Starter Project − A Starting Point for Any CI Dev
December 12, 2011
from: github.com
NetTuts+ Tutorial for GetSparks
November 24, 2011
from: net.tutsplus.com
Lightweight mobile device detection routine
| Contributor | : weejames |
| : 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 | : 675 |
php tools/spark install -v1.0.1 mobiledetection
Or download this version manually:
Get mobiledetection-v1.0.1.zip
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
php tools/spark install -v1.0.0 mobiledetection
Or download this version manually:
Get mobiledetection-v1.0.zip