thienhungho / yii2-supplier-management
Yii2 供应商管理系统
v1.0.2
2018-12-13 00:36 UTC
Requires
- thienhungho/yii2-app-core: *
- yiisoft/yii2: ~2.0.9
This package is auto-updated.
Last update: 2024-09-30 01:34:28 UTC
README
为 Yii2 设计的供应商管理系统
安装
这只是个示例,可能存在已知原因导致源代码无法正常运行。此源代码包含防止丢失许可证的功能。
安装此扩展的首选方式是通过 composer。
运行以下命令:
php composer.phar require --prefer-dist thienhungho/yii2-supplier-management "*"
或者在您的 composer.json
文件的 require 部分添加:
"thienhungho/yii2-supplier-management": "*"
thienhungho/yii2-supplier-management
配置
将模块 SupplierManage 添加到您的 AppConfig
文件中。
... 'modules' => [ ... /** * Supplier Manage */ 'supplier-manage' => [ 'class' => 'thienhungho\SupplierManagement\modules\SupplierManage\SupplierManageModules', ], ... ], ...
迁移
在终端中运行以下命令进行数据库迁移:
yii migrate/up --migrationPath=@vendor/thienhungho/yii2-supplier-management/migrations
或者使用 命名空间迁移(需要至少 Yii 2.0.10)
// Add namespace to console config: 'controllerMap' => [ 'migrate' => [ 'class' => 'yii\console\controllers\MigrateController', 'migrationNamespaces' => [ 'thienhungho\SupplierManagement\migrations\namespaced', ], ], ],
然后运行:
yii migrate/up