mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
further progress on rendering partMenu
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once APPPATH . 'library/treemenu/TreeMenuLib.php';
|
||||
require_once APPPATH . 'libraries/treemenu/TreeMenuLib.php';
|
||||
/**
|
||||
* Description of StvMenuLib
|
||||
*
|
||||
@@ -9,8 +9,15 @@ class StvMenuLib extends TreeMenuLib
|
||||
{
|
||||
public function getSubMenu()
|
||||
{
|
||||
return [
|
||||
'StvMenuLib' => null
|
||||
];
|
||||
$nodes = array();
|
||||
|
||||
foreach($this->children_config as $childconfig)
|
||||
{
|
||||
$childlib = basename($childconfig['library']);
|
||||
$childnodes = $this->ci->$childlib->getNodes();
|
||||
$nodes = array_merge($nodes, $childnodes);
|
||||
}
|
||||
|
||||
return $nodes;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user