Child pages
  • Making your module work with Bootstrap

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...