呆错后台管理框架基础模块(标签聚合)开发实例

2022-06-03 23:02:33 开发文档 开发实例

初始字段

$fields = [
    'term_name'        => 'termName',
    'term_slug'        => 'termSlug',
    'term_info'        => 'termInfo',
    'term_module'      => 'demo',
    'term_controll'    => 'tag',//固定值
    'term_action'      => 'index',
    'term_status'      => 'normal',
    'term_type'        => '',
    'term_order'       => 1,
    'term_parent'      => 0,
    'term_count'       => 0,
    'term_title'       => '',
    'term_kewords'     => '',
    'term_description' => '',
];

卸载插件时删除栏目分类

model('common/Tag','loglic')->uninstall('demo');

安装插件时批量插入标签

model('common/Tag','loglic')->install([
[
    'term_name'       => '标签1',
    'term_slug'       => 'tag1',
    'term_module'     => 'demo',
],
[
    'term_name'       => '标签2',
    'term_slug'       => 'tag2',
    'term_module'     => 'demo',
],

]);

36

作者:admin

链接:https://demo.daicuo.cc/cms/detail/index?id=684

来源:呆错框架演示

著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

上一篇:呆错后台管理框架基础模块(前台导航)开发实例

下一篇:呆错后台管理框架基础模块(角色/用户组)开发实例