Child pages
  • Adapter votre module à 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'));
}

Cette ligne DOIT être placée dans la méthode __construct() de votre module – si vous utilisez des contrôleurs bootstrappés.

...