thienhungho / yii2-contact-management
Yii2 联系人管理系统
v1.0.5
2018-11-24 09:09 UTC
Requires
- thienhungho/yii2-app-core: *
- yiisoft/yii2: ~2.0.9
README
Yii2 联系人管理系统
安装
这只是一个示例,可能因某些已知原因而无法运行。此源代码包含针对许可证丢失的功能。
建议通过 composer 安装此扩展。
运行以下命令:
php composer.phar require --prefer-dist thienhungho/yii2-contact-management "*"
或者将以下内容添加到你的 composer.json
文件的 require 部分:
"thienhungho/yii2-contact-management": "*"
迁移
在终端运行以下命令以进行数据库迁移:
yii migrate/up --migrationPath=@vendor/thienhungho/ContactManagement/migrations
或使用命名空间迁移(需要至少 Yii 2.0.10)
// Add namespace to console config: 'controllerMap' => [ 'migrate' => [ 'class' => 'yii\console\controllers\MigrateController', 'migrationNamespaces' => [ 'thienhungho\ContactManagement\migrations\namespaced', ], ], ],
然后运行:
yii migrate/up
配置
将模块 ContactManage 添加到你的 AppConfig
文件中。
... 'modules' => [ ... /** * Contact Manage */ 'contact-manage' => [ 'class' => '\thienhungho\ContactManagement\modules\ContactManage\ContactManage', ], ... ], ...