模板开发
菜单标签
使用该标签可调用层级菜单。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用该标签可调用层级菜单。
调用菜单列表,并且赋值给 $list 变量。
{var $list = \App\Content\Service\Menu::lists('main')}
循环出菜单列表
{foreach $list as $vo}
<div>菜单标题:{$vo->title}</div>
{/foreach}
{var $list = \App\Content\Service\Menu::lists('main')}
{var $name = 'main'}
{var $list = \App\Content\Service\Menu::lists($name)}