![](https://img.kancloud.cn/89/7a/897a2086ee7cd90836e999e2c5b8de50_968x414.jpeg)
## 函数介绍
~~~
pluginsList()
~~~
是app/admin模块下的模块函数,返回类型是字符串,把每个插件下的config.php文件下的page数组执行分发返回字符串
## 参数介绍
~~~
[name] 边栏名
[view] 执行页面
[page] 子页面
~~~
## 使用教程
### 一级导航
*代码*
~~~
'list' => [
'name' => '哈哈哈哈',
'view' => 'aa'
]
~~~
*效果*
![](https://img.kancloud.cn/f2/81/f281e902312243f857b7fc78fad5f0d4_468x102.png)
### 二级导航
*代码*
~~~
'list' => [
'name' => '登陆插件',
'page' => [
[
'name' => '登陆配置',
'view' => view()
],
[
'name' => '登陆日志',
'view' => view()
]
]
]
~~~
*效果*
![](https://img.kancloud.cn/e9/00/e9002a52b82b126dd0953424e772880d_458x250.png)
### 多级导航
*代码*
~~~
'list' => [
'name' => '百度推送',
'page' => [
[
'name' => '推送配置',
'view' => plugin('set/set',__DIR__)
],
[
'name' => '采集规则',
'page' => [
[
'name' => '规则列表',
'view' => view()
],
[
'name' => '添加规则',
'view' => view()
],
[
'name' => '联系作者',
'page' => [
[
'name' => 'Cumin',
'view' => '2937978586'
]
]
]
]
],
[
'name' => '采集任务',
'page' => [
[
'name' => '任务列表',
'view' => view()
],
[
'name' => '添加任务',
'view' => view()
]
]
]
]
]
~~~
*效果*
![](https://img.kancloud.cn/19/ab/19ab8a2751d70b5f22e4f0d0baaa9bb3_460x488.png)