Hey! Keep up to date with the project through its beta and public launch by following @getsparks.Tweet
CodeIgniter Starter Project − A Starting Point for Any CI Dev
December 12, 2011
Lightweight mobile device detection routine
|: 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||: 1,981|
php tools/spark install -v1.0.1 mobiledetectionOr download this version manually: Get mobiledetection-v1.0.1.zip
Mobile Device Detection for CodeIgniter by James Constable email@example.com @weejames
This is a lightweight mobile device detection algorithm for CodeIgniter.
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.
1) Extract the archive you get from here. 2) Put libraries/mobiledetection.php into your applications libraries diectory.
If you've installed via the spark then add the following to your controller.
if you've installed manually.
From there on call the following function to determine if your visitor is using a mobile device.
True is returned if they are, otherwise false is returned.
Twitter: @weejames Email: firstname.lastname@example.org Web: http://jamesconstable.co.uk GitHub: http://github.com/weejames
php tools/spark install -v1.0.0 mobiledetectionOr download this version manually: Get mobiledetection-v1.0.zip