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;
}