thienhungho/yii2-customer-management

Yii2 客户管理系统

v1.0.5 2018-12-18 12:02 UTC

This package is auto-updated.

Last update: 2024-09-30 01:41:42 UTC


README

Yii2 客户管理系统

这只是个示例,仅供参考。由于已知原因,源代码可能无法正常工作。此源代码包含防止丢失许可证的功能。

安装

通过 composer 安装此扩展是首选方法。

运行以下命令

php composer.phar require --prefer-dist thienhungho/yii2-customer-management "*"

或者

"thienhungho/yii2-customer-management": "*"

将以下内容添加到您的 composer.json 文件的 require 部分中。

迁移

在终端中运行以下命令进行数据库迁移

yii migrate/up --migrationPath=@vendor/thienhungho/CustomerManagement/migrations

或使用 命名空间迁移(至少需要 Yii 2.0.10)

// Add namespace to console config:
'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationNamespaces' => [
            'thienhungho\CustomerManagement\migrations\namespaced',
        ],
    ],
],

然后运行

yii migrate/up

配置

将模块 CustomerManage 添加到您的 AppConfig 文件中。

...
'modules'          => [
    ...
    /**
     * Block Manage
     */
    'customer-manage' => [
        'class' => 'thienhungho\CustomerManagement\modules\CustomerManage\CustomerManagerModule',
    ]
    ...
],
...

模块

CustomerBase, CustomerManage

功能

核心

模型

Customer, CustomerBillingAddress, CustomerNote, CustomerReminders, CustomerShippingAddress