...
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'));
}
|
This MUST be placed in your module's __construct()
method to work – if you use bootstrapped controllers.
...