[+] BO : New AdminController system, including smarty backoffice, thanks to Raphael and Thomas

This commit is contained in:
mMarinetti
2011-09-23 15:01:49 +00:00
parent 230ed9d5ee
commit 6191e868f1
13 changed files with 833 additions and 220 deletions
+11
View File
@@ -252,4 +252,15 @@ class TabCore extends ObjectModel
return ($tabAccesses[(int)($id_tab)]['view'] === '1');
return false;
}
public static function recursiveTab($id_tab, $tabs)
{
$adminTab = Tab::getTab((int)Context::getContext()->language->id, $id_tab);
$tabs[]= $adminTab;
if ($adminTab['id_parent'] > 0)
{
$tabs[] = Tab::recursiveTab($adminTab['id_parent'], $tabs);
}
return $tabs;
}
}