...
Code Block |
---|
public function __construct()
{
$this->bootstrap = true;
$this->display = 'view';
$this->meta_title = $this->l('Your Merchant Expertise');
parent::__construct();
if (!$this->module->active)
Tools::redirectAdmin($this->context->link->getAdminLink('AdminHome'));
}
|
Cette ligne DOIT être placée dans la méthode __construct()
de votre module – si vous utilisez des contrôleurs bootstrappés.
...