I'm in the process of creating a mobile site and I'm starting the task of converting our current app. I'm looking at using CodeIgniter's built-in user-agent class but I want to know if the following is possible:
$this->load->library('user_agent');
if (!$this->agent->is_mobile()) {
$this->_showPage("newquote/newquotemobile", 'Test Mobile Page', $viewData);
}
else {
$this->_showPage("newquote/newquote", 'Test Page', $viewData);
}
Has anyone had any experience in using CodeIgniter's built in user-agent class?