CodeIgniter Forums
User agent class problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: User agent class problem (/showthread.php?tid=20598)



User agent class problem - El Forum - 07-15-2009

[eluser]NachoF[/eluser]
When accessign from a Blackberry browser:
Code:
$this->agent->is_mobile()
returns true
but
Code:
$this->agent->browser()
returns empty string
so does this
Code:
$this->agent->version()
.....
Code:
$this->agent->agent_string()
returns the agent string correctly so theres got to be something wrong in retreiving the browser and the version from the string... dont know how to fix it though.