Home Knowledge Base Fantacy Script & Apps How to disable the Mobile site through coding?

How to disable the Mobile site through coding?

Select the UsersController.php file from app/controller/UsersController.php

In UsersController.php , Hide the function named “beforerender()” and in function login() hide the following lines

if ($this->RequestHandler->isMobile())

{

           $this->layout = “mobilelayout”;

           $this->redirect(‘/mobile/login’);

   }

By hiding these lines in the coding, the Mobile website can be disabled.

Note: To enable the Mobile website, revert the above changes in that same file.