枪械88 / yii2-client
公司客户的CRUD操作
dev-master
2017-05-15 12:52 UTC
Requires
This package is auto-updated.
Last update: 2024-08-27 21:13:16 UTC
README
客户指南。
包含管理(CRUD)功能
- 客户(姓名、照片、状态等)
- 员工类别
- 客户请求
安装
执行命令
php composer require pistol88/yii2-client "*"
或在composer.json中添加
"pistol88/yii2-client": "*",
然后执行
php composer update
接下来,迁移数据库
php yii migrate --migrationPath=vendor/pistol88/yii2-client/migrations
别忘了执行依赖于client的模块的迁移
配置
在配置文件的modules部分添加
'modules' => [
//..
'client' => [
'class' => 'pistol88\client\Module',
'adminRoles' => ['administrator'],
],
//..
]
在components部分
'client' => [
'class' => 'pistol88\client\Client',
],
使用
- ?r=client/default/index - CRUD列表
小部件
- pistol88\client\widgets\Calls::widget(['client' => $clientModel]); - 将显示请求列表,并提供添加新的功能