Jump to content

Admin module controller


Recommended Posts

I started developing a forum module and achieved creating admin tabs but as I click on the tab there is a message that a controller is missing. Any help would be more than awesome! Ps version 1.6

 

Ps. Vekia share your magic scripts

 

you careated also admin controller file?

how you created tabs? can you show a part of your code ? (and code of admin controller for this tab if exists)

Link to comment
Share on other sites

$tab = new Tab();
$tab->class_name = $this->l('AdminForumForumSettings');
$tab->id_parent = Tab::getIdFromClassName($this->l('AdminHome'));
$tab->module = $this->name;
$languages = Language::getLanguages();
foreach ($languages as $language)
   $tab->name[$language['id_lang']] = $this->l('Forum Settings');
   $tab->add();

This is how I create every single of my tabs

 

I have no controller as I created one which was making my whole screen white.. So I deleted it.. And would like instructions to do it the proper way.. Thanx in advance

Link to comment
Share on other sites

×
×
  • Create New...