呆错后台管理框架基础模块(后台菜单)开发实例
初始字段
$fields = [
'term_name' => '菜单',//菜单名称
'term_slug' => 'admin/index/index',//菜单链接
'term_info' => 'fa-check',//菜单ICO
'term_module' => 'admin',//应用名
'term_controll' => 'menus',//固定值
'term_action' => 'left',//操作名(top|left)
'term_status' => 'normal',//状态
'term_type' => '_self',//打开方式
'term_order' => 1,
'term_parent' => 0,
'term_count' => 0,
'term_title' => '',
'term_kewords' => '',
'term_description' => '',
];
卸载插件时删除后台菜单
model('common/Menu','loglic')->uninstall('demo');
安装插件时批量插入一级菜单(顶部与左侧)
model('common/Menu','loglic')->install([[
'term_name' => '顶部菜单',
'term_slug' => 'demo/index/index',
'term_info' => 'fa-gear',
'term_type' => '_self',
'term_action' => 'top',
'term_module' => 'demo',
],
[
'term_name' => '菜单演示',
'term_slug' => 'demo',
'term_info' => 'fa-home',
'term_type' => '_self',
'term_action' => 'left',
'term_module' => 'demo',
]
]);
安装插件时批量插入二级菜单(左侧)
model('common/Menu','loglic')->install([[
'term_name' => '测试1',
'term_slug' => 'demo/index/index',
'term_info' => 'fa-gear',
'term_type' => '_self',
'term_action' => 'left',
'term_module' => 'demo',
],
[
'term_name' => '测试2',
'term_slug' => 'demo/left/index',
'term_info' => 'fa-home',
'term_type' => '_self',
'term_action' => 'left',
'term_module' => 'demo',
]
],'菜单演示');
作者:admin
链接:https://demo.daicuo.cc/cms/detail/index?id=677
来源:呆错框架演示
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
- 呆错文章管理系统所使用的数据库字段说明 596
- 呆错短视频系统所使用的数据库字段说明 412
- 呆错后台管理框架基础模块(用户权限)开发实例 410
- 呆错文章管理系统筛选页排序字段、排序方法有哪些? 401
- 呆错文章管理系统首页调用友情链接的实例 393
- 呆错后台管理框架基础模块—后台菜单 372
- 呆错后台管理框架基础模块(会员/用户)开发实例 368
- 呆错后台管理框架基础模块(标签聚合)开发实例 362
- 继承呆错后台管理框架后台基类模板开发插件后台的表单实例 354
- 呆错后台管理框架基础模块(日志记录)开发实例 353
- 呆错后台管理框架基础模块(动态配置)开发实例 348
- 呆错后台管理框架表单组件介绍-标签TAG 344
- 呆错后台管理框架前台分页样式表通用CSS代码实例 340
- 呆错后台管理框架基础模块(伪静态路由)开发实例 336
- 呆错支付插件开发过程中测试写入订单的实例 329
- 呆错后台管理框架基础模块(前台导航)开发实例 320
- 呆错后台管理框架基础模块(后台菜单)开发实例 318
- 呆错后台管理框架基础模块(栏目分类)开发实例 313
- 如何重置呆错后台管理框架初始数据 306
- 呆错后台管理框架基础模块(表单字段)开发实例 304