23478 Posts in 18941 Topics by 2878 members
|Go to End|
13 August 2013 at 5:46am
I'd probably write a simple MobileDetect module for SilverStripe, using a SilverStripe wrapper class around the thirdparty Mobile_Detect class.
This wrapper would 'include' the thirdparty class, instantiate it and provide some methods to communicate with it to get the results you want.
Then you could work with it just like with any SilverStripe class, from whichever Extention or Controller you'd want
13 August 2013 at 9:05pm
Yep, good idea: https://github.com/knsqnt/SilverStripe_DeviceDetection
Thanks for your help.
|Go to Top|