Vinum Posted March 5, 2014 Share Posted March 5, 2014 (edited) Bonjour, J'ai créé un module dont j'aimerais créer un onglet parent dans le back office.Si je le crée manuellement cela fonctionne.Si je crée un onglet enfant comme ceci : $tab=new tab(); $tab->name[$id_lang]= $this->l('Mon Onglet'); $tab->class_name= 'AdminMonModule'; $tab->module = $this->name; $tab->id_parent=Tab::getIdFromClassName('AdminAdmin'); $tab->add(); Cela fonctionne.En revanche si je veux creer un onglet parent en mettant $tab->id_parent=0 comme ceci: $tab=new tab(); $tab->name[$id_lang]= $this->l('VM Calendar'); $tab->class_name= 'AdminVMCalendar'; $tab->module = $this->name; $tab->id_parent=0; $tab->add(); Cela ne fonctionne pas.Est ce un bug de prestashop ou est ce que je m'y prends mal pour Prestashop 1.6 ? Merci Edited March 10, 2014 by Vinum (see edit history) Link to comment Share on other sites More sharing options...
Vinum Posted March 7, 2014 Author Share Posted March 7, 2014 Bonjour, Cela fonctionne avec Prestashop 1.6.0.4.Donc il s'agissait d'un bug des précédentes versions. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now