コード例 #1
0
 public function __construct()
 {
     $this->controller_type = 'modulefront';
     $this->module = Module::getInstanceByName(Tools::getValue('module'));
     if (!$this->module->active) {
         Tools::redirect('index');
     }
     $this->page_name = 'module-' . $this->module->name . '-' . Dispatcher::getInstance()->getController();
     parent::__construct();
     $this->display_column_left = isset($this->page_name) && is_object(Context::getContext()->theme) ? Context::getContext()->theme->hasLeftColumn($this->page_name) : true;
     $this->display_column_right = isset($this->page_name) && is_object(Context::getContext()->theme) ? Context::getContext()->theme->hasRightColumn($this->page_name) : true;
 }