black-lamp/yii2-legal-agreement
Composer 安装命令:
composer require black-lamp/yii2-legal-agreement
包简介
Module for adding the legal agreements across dashboard
README 文档
README
Module for adding the legal agreements across dashboard
Installation
Run command
composer require black-lamp/yii2-legal-agreement
or add
"black-lamp/yii2-legal-agreement": "1.*.*"
to the require section of your composer.json.
Applying migrations
yii migrate --migrationPath=@vendor/black-lamp/yii2-legal-agreement/common/migrations
Add modules to application config
Frontend module for displaying and accepting the agreement
'modules' => [ // ... 'legal' => [ 'class' => bl\legalAgreement\frontend\LegalModule::className(), ], ]
Backend module for work with the agreements
'modules' => [ // ... 'legal' => [ 'class' => bl\legalAgreement\backend\LegalModule::className(), 'languageProvider' => [ 'class' => bl\legalAgreement\backend\providers\DbLanguageProvider::className(), 'arModel' => \bl\multilang\entities\Language::className(), 'idField' => 'id', 'nameField' => 'name' ] ], ]
Add component to application config
Component for work with agreements and users
'components' => [ // ... 'legal' => [ 'class' => bl\legalAgreement\common\components\LegalAgreement::className() ], ]
统计信息
- 总下载量: 133
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GNU
- 更新时间: 2016-10-03