vazeem Posted September 4, 2015 Share Posted September 4, 2015 Hi, How to add a new root tab in back office when i installed a module. Link to comment Share on other sites More sharing options...
NishantVadgama Posted September 4, 2015 Share Posted September 4, 2015 (edited) write following code and execute in install method. $parent_tab = new Tab(); $parent_tab->class_name = 'Tabs AdminControllerName'; $parent_tab->module = $this->name; $parent_tab->id_parent = 0; $languages = Language::getLanguages(false); foreach ($languages as $lang) $parent_tab->name[$lang['id_lang']] = 'Tab Name'; $parent_tab->save(); Edited September 4, 2015 by NishantVadgama (see edit history) Link to comment Share on other sites More sharing options...
vazeem Posted September 4, 2015 Author Share Posted September 4, 2015 Hi, Its working. Thank you very much. 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