Mhyran Posted May 29, 2020 Share Posted May 29, 2020 (edited) Hi everyone, I'm sorry if this question has already been answered, but I try to build my first module and I can't linked it with my own controller, I have this error. Have you any idea to solved that ? Thank you in advance ^^ Code in main file : public function _installTab() { $tab = new Tab(); $tab->active = 1; $tab->class_name = 'AdminPromotions'; $tab->name = 'Promotions'; $tab->module = $this->name; $tab->id_parent = (int) Tab::getIdFromClassName('DEFAULT'); $tab->icon = 'settings_applications'; try { $tab->save(); } catch (Exception $e) { echo '_installTab: ' . $e->getMessage(); return false; } return true; } Edited May 29, 2020 by Mhyran (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted November 9, 2020 Share Posted November 9, 2020 Don't know how to create a controller in your module? 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