Skip to content

Commit b2955f8

Browse files
authored
Merge pull request #79 from ggoffy/master
added renderNavigation
2 parents 4dcdf96 + 1b8d61b commit b2955f8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Module/Admin.php

+12
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,18 @@ public function displayIndex()
231231
echo $this->renderIndex();
232232
}
233233

234+
/**
235+
* Render the navigation menu
236+
*
237+
* @param string $menu menu key (script name, i.e. index.php)
238+
*
239+
* @return bool|mixed|string
240+
*/
241+
public function renderNavigation($menu = '')
242+
{
243+
return static::$ModuleAdmin->addNavigation($menu);
244+
}
245+
234246
/**
235247
* Display the navigation menu
236248
*

0 commit comments

Comments
 (0)