This component uses the WURFL API to detect any mobile or wireless device, and sets custom paths for your views and css, so you can easily create a mobile version of your website.
Lets get started.
The WURFL API
First of all, download the WURFL API package here (Make sure to download the 1.1 version).
Extract the entire WURFL folder in the package to your /app/vendors folder.
Create a directory /app/configs/wurfl, and extract everything in the resources folder to that directory.
In the examples/resources directory, extract the file in the wurfl-regression.zip to your /app/configs/wurfl directory.
Edit the wurfl-config.xml file to look like the following:
< ?xml version="1.0" encoding="UTF-8"?>wurfl.xml web_browsers_patch.xml file dir=../../tmp/cache/wurfl null
Create the folder /app/tmp/cache/wurfl.
The Component
Create a file /app/controllers/components/mobiledetect.php and put the following in the file:
< ?php
class MobiledetectComponent extends Object
{
var $isMobile = false;
function startup(&$controller)
{
$this->controller =& $controller;
}
function detect()
{
App::import( 'Vendor', 'WURFL', array( 'file' => 'WURFLManagerProvider.php'));
$wurflConfigFile = CONFIGS.'wurfl/wurfl-config.xml';
$wurflManager = WURFL_WURFLManagerProvider::getWURFLManager($wurflConfigFile);
$requestingDevice = $wurflManager->getDeviceForHttpRequest($_SERVER);
if($requestingDevice->getCapability('is_wireless_device') == 'true')
{
$this->isMobile = true;
$this->setMobile();
$this->controller->theme = 'mobile';
$this->controller->layoutPath = 'mobile';
}
}
}
In your app_controller, remember to include the component like this:
< ?php
var $components = array('Mobiledetect');
?>
and add to the beforeFilter function the following:
< ?php
function beforeFilter()
{
$this->Mobiledetect->startup($this);
$this->Mobiledetect->detect();
}
And thats it! Now you can create a custom layout file for your mobile website, located under /app/views/layouts/mobile.
You also need to put your css in a directory in /app/webroot/themed/mobile/css
and (optional)images in /app/webroot/themed/mobile/css/img.
Your views need to go to /app/views/themed/mobile.
Your done! Now you can create a mobile version of your website.
It does not work. I am getting this type error. How can i solve it. Anyone give me advise to fixup this problem.
Getting error:
Fatal error: Class ‘WURFL_WURFLManagerProvider’ not found in D:\wamp\www\nextnet\front\controllers\components\mobiledetect.php on line 15
XEvil 6.0 automatically solve most kind of captchas,
Including such type of captchas: ReCaptcha-2, ReCaptcha v.3, Google, SolveMedia, BitcoinFaucet, Steam, +12000
+ hCaptcha, FC, ReCaptcha Enterprize now supported in new XEvil 6.0!
+ CloudFlare TurnsTile, GeeTest captcha now supported in new XEvil 7.0!
+ XEvil 7.0 was released! ReCaptcha v2 solving speed increased x2!
+ XEvil can solve captchas from OpenClaw AI bot!
1.) Fast, easy, precisionly
XEvil is the fastest captcha killer in the world. Its has no solving limits, no threads number limits
2.) Several APIs support
XEvil supports more than 6 different, worldwide known API: 2Captcha, anti-captcha (antigate), RuCaptcha, death-by-captcha, etc.
just send your captcha via HTTP request, as you can send into any of that service – and XEvil will solve your captcha!
So, XEvil is compatible with hundreds of applications for SEO/SMM/password recovery/parsing/posting/clicking/cryptocurrency/etc.
3.) Useful support and manuals
After purchase, you got access to a private tech.support forum, Wiki, Skype/Telegram online support
Developers will train XEvil to your type of captcha for FREE and very fast – just send them examples
4.) How to get free trial use of XEvil full version?
– Try to search in Google “Home of XEvil”
– you will find IPs with opened port 80 of XEvil users (click on any IP to ensure)
– try to send your captcha via 2captcha API ino one of that IPs
– if you got BAD KEY error, just tru another IP
– enjoy! 🙂
– (its not work for hCaptcha!)
WARNING: Free XEvil DEMO does NOT support ReCaptcha, hCaptcha and most other types of captcha!
XEvil 5.0 automatically solve most kind of captchas,
Including such type of captchas: ReCaptcha v.2, ReCaptcha v.3, Google captcha, Solve Media, BitcoinFaucet, Steam, +12000
+ hCaptcha, FC, ReCaptcha Enterprize now supported in new XEvil 6.0!
+ CloudFlare TurnsTile, GeeTest captcha now supported in new XEvil 7.0!
+ XEvil 7.0 was released! ReCaptcha v2 solving speed increased x2!
+ XEvil can solve captchas from OpenClaw AI bot!
1.) Fast, easy, precisionly
XEvil is the fastest captcha killer in the world. Its has no solving limits, no threads number limits
2.) Several APIs support
XEvil supports more than 6 different, worldwide known API: 2Captcha, anti-captcha (antigate), rucaptcha, death-by-captcha, etc.
just send your captcha via HTTP request, as you can send into any of that service – and XEvil will solve your captcha!
So, XEvil is compatible with hundreds of applications for SEO/SMM/password recovery/parsing/posting/clicking/cryptocurrency/etc.
3.) Useful support and manuals
After purchase, you got access to a private tech.support forum, Wiki, Skype/Telegram online support
Developers will train XEvil to your type of captcha for FREE and very fast – just send them examples
4.) How to get free trial use of XEvil full version?
– Try to search in Google “Home of XEvil”
– you will find IPs with opened port 80 of XEvil users (click on any IP to ensure)
– try to send your captcha via 2captcha API ino one of that IPs
– if you got BAD KEY error, just tru another IP
– enjoy! 🙂
– (its not work for hCaptcha!)
WARNING: Free XEvil DEMO does NOT support ReCaptcha, hCaptcha and most other types of captcha!
Не бойтесь отдавать технику – в распоряжении помещения общей площадью более 1?000 м?, оснащенные современным оборудованием, позволяющим провести диагностику и восстановить любую технику максимально быстро, насколько это возможно
XEvil 6.0 automatically solve most kind of captchas,
Including such type of captchas: ReCaptcha v.2, ReCaptcha v.3, Google, SolveMedia, BitcoinFaucet, Steam, +12k
+ hCaptcha, FC, ReCaptcha Enterprize now supported in new XEvil 6.0!
+ CloudFlare TurnsTile, GeeTest captcha now supported in new XEvil 7.0!
+ XEvil 7.0 was released! ReCaptcha v2 solving speed increased x2!
+ XEvil can solve captchas from OpenClaw AI bot!
1.) Fast, easy, precisionly
XEvil is the fastest captcha killer in the world. Its has no solving limits, no threads number limits
2.) Several APIs support
XEvil supports more than 6 different, worldwide known API: 2captcha, anti-captchas (antigate), RuCaptcha, DeathByCaptcha, etc.
just send your captcha via HTTP request, as you can send into any of that service – and XEvil will solve your captcha!
So, XEvil is compatible with hundreds of applications for SEO/SMM/password recovery/parsing/posting/clicking/cryptocurrency/etc.
3.) Useful support and manuals
After purchase, you got access to a private tech.support forum, Wiki, Skype/Telegram online support
Developers will train XEvil to your type of captcha for FREE and very fast – just send them examples
4.) How to get free trial use of XEvil full version?
– Try to search in Google “Home of XEvil”
– you will find IPs with opened port 80 of XEvil users (click on any IP to ensure)
– try to send your captcha via 2captcha API ino one of that IPs
– if you got BAD KEY error, just tru another IP
– enjoy! 🙂
– (its not work for hCaptcha!)
WARNING: Free XEvil DEMO does NOT support ReCaptcha, hCaptcha and most other types of captcha!
XEvil 6.0 automatically solve most kind of captchas,
Including such type of captchas: ReCaptcha v.2, ReCaptcha v.3, Google captcha, Solve Media, BitcoinFaucet, Steam, +12000
+ hCaptcha, FC, ReCaptcha Enterprize now supported in new XEvil 6.0!
+ CloudFlare TurnsTile, GeeTest captcha now supported in new XEvil 7.0!
+ XEvil 7.0 was released! ReCaptcha v2 solving speed increased x2!
+ XEvil can solve captchas from OpenClaw AI bot!
1.) Fast, easy, precisionly
XEvil is the fastest captcha killer in the world. Its has no solving limits, no threads number limits
2.) Several APIs support
XEvil supports more than 6 different, worldwide known API: 2Captcha, anti-captcha (antigate), RuCaptcha, death-by-captcha, etc.
just send your captcha via HTTP request, as you can send into any of that service – and XEvil will solve your captcha!
So, XEvil is compatible with hundreds of applications for SEO/SMM/password recovery/parsing/posting/clicking/cryptocurrency/etc.
3.) Useful support and manuals
After purchase, you got access to a private tech.support forum, Wiki, Skype/Telegram online support
Developers will train XEvil to your type of captcha for FREE and very fast – just send them examples
4.) How to get free trial use of XEvil full version?
– Try to search in Google “Home of XEvil”
– you will find IPs with opened port 80 of XEvil users (click on any IP to ensure)
– try to send your captcha via 2captcha API ino one of that IPs
– if you got BAD KEY error, just tru another IP
– enjoy! 🙂
– (its not work for hCaptcha!)
WARNING: Free XEvil DEMO does NOT support ReCaptcha, hCaptcha and most other types of captcha!