[+] BO : Adding Tree Helper

This commit is contained in:
Jerome Nadaud
2013-09-06 17:06:19 +02:00
parent 36a863df59
commit c7e4f0ce5f
2 changed files with 5 additions and 11 deletions
+4 -8
View File
@@ -295,23 +295,19 @@ class HelperTreeCore
$html .= $this->getContext()->smarty->createTemplate(
$this->getTemplateDirectory().$this->getNodeFolderTemplate(),
$this->getContext()->smarty
)
->assign(array(
)->assign(array(
'name' => $item['name'],
'children' => $this->renderNodes($item['children']),
'node' => $item
))
->fetch();
))->fetch();
else
$html .= $this->getContext()->smarty->createTemplate(
$this->getTemplateDirectory().$this->getNodeItemTemplate(),
$this->getContext()->smarty
)
->assign(array(
)->assign(array(
'name' => $item['name'],
'node' => $item
))
->fetch();
))->fetch();
}
return $html;