手枪88 / yii2-auto-catalog

yii2-auto-catalog 是一个用于网站自动目录后端的模块

安装: 28

依赖者: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 0

开放问题: 0

类型:yii2-extension

dev-master 2016-07-29 07:47 UTC

This package is auto-updated.

Last update: 2024-08-27 21:52:50 UTC


README

汽车目录(仅后端)。

包含管理功能(CRUD)

  • 类别
  • 品牌
  • 型号

安装

执行命令

php composer require pistol88/yii2-auto-catalog "*"

或在 composer.json 中添加

"pistol88/yii2-auto-catalog": "*",

然后执行

php composer update

接下来,迁移数据库

php yii migrate --migrationPath=vendor/pistol88/yii2-auto-catalog/migrations

配置

在配置文件的 modules 部分添加

    'modules' => [
        //..
        'autocatalog' => [
            'class' => 'pistol88\autocatalog\Module',
            'adminRoles' => ['administrator'],
        ],
        //..
    ]

使用

  • ?r=autocatalog/category - 类别
  • ?r=autocatalog/mark - 品牌
  • ?r=autocatalog/model - 型号

小部件

小部件正在开发中。