Bonjour à tous,
Savez-vous pourquoi la helperlist ne s'affiche pas ? Voici le code :
public function initContent() { $this->initList(); } private function initList() { $id_sms_rule=Tools::getValue('id_sms_rule'); $conditions=MassSMSSeeCustomers::generate_array_of_customers($id_sms_rule); $data=MassSMSSeeCustomers::generate_select_customer_with_condition($conditions); // Définit les colonnes à afficher dans la helperlist $columns = array( 'product_id' => array( 'title' => $this->trans('Product ID', array(), 'Admin.Global'), 'width' => 25 ), 'prod_name' => array( 'title' => $this->trans('Product Name', array(), 'Admin.Global'), 'width' => 'auto' ), 'phone_mobile' => array( 'title' => $this->trans('Phone Mobile', array(), 'Admin.Global'), 'width' => 'auto' ), 'id_customer' => array( 'title' => $this->trans('Customer ID', array(), 'Admin.Global'), 'width' => 25 ), 'cus_date_add' => array( 'title' => $this->trans('Customer Date Add', array(), 'Admin.Global'), 'width' => 'auto' ), 'ord_date_add' => array( 'title' => $this->trans('Order Date Add', array(), 'Admin.Global'), 'width' => 'auto' ) ); $this->table = 'ycsms_condition'; $this->className = 'MassSMSCondition'; $this->identifier = 'id_sms_condition'; $this->fields_list = $columns; $helper_list = new HelperList(); $helper_list->module = $this; $helper_list->title = 'test'; $helper_list->shopLinkType = ''; $helper_list->identifier = 'id_customer'; $helper_list->table = ''; $helper_list->show_toolbar = true; $helper_list->currentIndex =$this->context->link->getAdminLink('AdminMassSMSSeeCustomers').'&id_sms_rule='. (int)Tools::getValue('id_sms_rule'); // This is needed for displayEnableLink to avoid code duplication $this->_helperlist = $helper_list; $helper_list->listTotal = count($data); return $helper_list->generateList($data, $this->fields_list); }
$conditions et $data sont corrects, et les $columns correspondent bien à $data.
Merci d'avance.