I'm developing my module and in localhost I have created tab in back office and when I click on this tab controller works fine , But when I upload this module on my real host module can create tab with no problem but when I click on this tab prestashop will show "Page not found !"
this is my code
$name="My test name";
$tab = new Tab();
$tab->id_parent=(int)Tab::getIdFromClassName('AdminParentModulesSf');
$tab->name=array();
foreach (Language::getLanguages(true) as $lang){
$tab->name[$lang['id_lang']]=$name;
}
$tab->class_name='AdminMyTest';
$tab->module=$this->name;
$tab->active=1;
$tab->add();
and I have created admin/controllers/AdminMyTest.php
class AdminMyTestController extends ModuleAdminController
{
}
So , have you any idea whats wrong ? Prestashop version is 1.7.4
thanks