Ci4 useragent |
In Ci3 I could use the user agent like this:
Code: $this->load->library('user_agent'); and then Code: $data = array( Im trying to replicate the same in CI4 and following the documentation here: https://codeigniter.com/user_guide/libra...-reference I dont see how to correlate the CI4. Ive tried this: Code: $agent = $this->request->getUserAgent(); PHP Code: // isBrowser, isMobile, isRobot, isReferral What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |