Hi Prestashop users, I'm working on a new theme for our shop but when I clear the cache it gives the following error:
Notice: Trying to get property of non-object in .../override/classes/controller/FrontController.php on line 7
Fatal error: Call to a member function assign() on a non-object in .../override/classes/controller/FrontController.php on line 7
Disabling override in 'Debug mode' and renaming the FrontController solves the problem.
This is the content of the override file:
<?php
class FrontController extends FrontControllerCore
{
public function __construct()
{
$this->context->smarty->assign('isMobile', $this->context->getMobileDevice());
parent::__construct();
}
}
Thanks in advance.
--
PS 1.6.0.14