black-lamp / yii2-legal-agreement
Module for adding the legal agreements across dashboard
Installs: 133
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- 2amigos/yii2-tinymce-widget: ~1.1
- yii2tech/ar-position: ^1.0
- yiisoft/yii2: ^2.0.4
- yiisoft/yii2-bootstrap: *
This package is not auto-updated.
Last update: 2024-11-08 23:09:39 UTC
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() ], ]