Jump to content

Common Way To Create Custom Tabs In Backend


vkosachev

Recommended Posts

Hello everyone. I'm quite new to prestashop, bu the question is very simple. What is the common way to create a tab in the backend menu to access my module? Will it trigger to load a module controller? If any good tutorial exists I would be grateful. Thanks.

Here is what I have tried, but it does nothing.

 

//Install method
public function install()
{
if( (parent::install() == false)||(!$this->_createTab())  )
	return false;
return true;
}
//creating the tab under Modules root tab
private function _createTab()
{
$tab = new Tab();
$tab->id_parent = 7; // Modules tab	
$tab->module='warranty';
$tab->name[(int)(Configuration::get('PS_LANG_DEFAULT'))] = $this->l('Warranty');
if(!$tab->save())
  return false;
return true;
}


Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...