If you are looking for DotKernel 3 related posts, go here.
DotKernel has an example mobile site at http://v1.dotkernel.net/mobile that uses jQuery Mobile.
Wurfl is also used to detect mobile browsers (as discussed in a previous blog post) and automatically redirect them to the mobile site the first time they view the homepage. Sometimes, this behavior isn’t desired (for example when you don’t have a mobile site, or you don’t plan on using Wurfl at all)
Starting with revision 408, there’s an option in application.ini to disable the automatic redirect (by default the redirect is disabled):
resources.useragent.wurflapi.redirect = false
The following condition is also added to Controllers/frontend/IndexController.php (at line 19) to check the configuration:
//if automatic redirect is enabled in application.ini and the browser is mobile and session->mobileHit is not set, register it and redirect
if($config->resources->useragent->wurflapi->redirect && 'mobile' == Dot_Kernel::getDevice()->getType() && !isset($session->mobileHit))
Looking for PHP, Laminas or Mezzio Support?
As part of the Laminas Commercial Vendor Program, Apidemia offers expert technical support and services for:
Leave a Reply