Welcome Guest, Not a member yet? Register   Sign In
How to use third party library
#4

(This post was last modified: 09-02-2020, 07:31 AM by jreklund.)

You do it like this: https://codeigniter.com/user_guide/conce...l#classmap

PHP Code:
$classmap = [
    
'MobileDetect' => APPPATH .'third_party/Mobile_Detect.php'
];

// Controller
new \MobileDetect

Depending on your needs, we kinda have it already built in:
https://codeigniter.com/user_guide/libra...l#isMobile
Reply


Messages In This Thread
How to use third party library - by Didytz - 09-02-2020, 12:54 AM
RE: How to use third party library - by InsiteFX - 09-02-2020, 03:53 AM
RE: How to use third party library - by Didytz - 09-02-2020, 04:35 AM
RE: How to use third party library - by jreklund - 09-02-2020, 07:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB